forked from OSchip/llvm-project
GCC workaround: use explicit qualification to avoid injected class name.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52625 llvm-svn: 296980
This commit is contained in:
parent
32e0d18605
commit
66bd85a96a
|
@ -485,8 +485,10 @@ class ConstantArrayBuilder
|
|||
: public ConstantArrayBuilderTemplateBase<ConstantInitBuilderTraits> {
|
||||
template <class Traits>
|
||||
friend class ConstantInitBuilderTemplateBase;
|
||||
|
||||
// The use of explicit qualification is a GCC workaround.
|
||||
template <class Impl, class Traits>
|
||||
friend class ConstantAggregateBuilderTemplateBase;
|
||||
friend class CodeGen::ConstantAggregateBuilderTemplateBase;
|
||||
|
||||
ConstantArrayBuilder(ConstantInitBuilder &builder,
|
||||
ConstantAggregateBuilderBase *parent,
|
||||
|
@ -500,8 +502,10 @@ class ConstantStructBuilder
|
|||
: public ConstantStructBuilderTemplateBase<ConstantInitBuilderTraits> {
|
||||
template <class Traits>
|
||||
friend class ConstantInitBuilderTemplateBase;
|
||||
|
||||
// The use of explicit qualification is a GCC workaround.
|
||||
template <class Impl, class Traits>
|
||||
friend class ConstantAggregateBuilderTemplateBase;
|
||||
friend class CodeGen::ConstantAggregateBuilderTemplateBase;
|
||||
|
||||
ConstantStructBuilder(ConstantInitBuilder &builder,
|
||||
ConstantAggregateBuilderBase *parent,
|
||||
|
|
Loading…
Reference in New Issue