This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH] [PR13810] ICE on default argument for template templateparameter (3.4/3.5 regression)


Giovanni Bajo wrote:

Mark Mitchell wrote:



The other case that you should check, however,
is the case where the current template name is used.

Like:

template <typename T>
struct S {
template <template <typename> class = S> struct I {};
};



But the (unqualified) injected class name cannot be used as argument for a template template parameter.

True, good.

Yes, the patch is OK, with Gaby's changes, for both 3.4 and mainline.

Thanks,

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]