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]

Re: C++ PATCH: Reimplementation of error.c


>>>>> Nathan Sidwell <nathan@acm.org> writes:

 > The TS_PEDANTIC_NAME flag will change the generic rendering to
 > `X<class>::m', so that one can distinguish between the generic template
 > X, and the instantiation with a type coincidentally named `T'.

I think that should still be X<T>.  X<class> is invalid syntax, and thus
seems an odd choice for "pedantic".

Where do you expect this type to be printed?  I would be surprised to find
it outside the definition of X, where X<T> is unambiguous.

Jason


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