This is the mail archive of the gcc-bugs@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: template bug?


>>>>> Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> writes:

> This is not valid ISO C++ code, line 4 should actually read
>   typename T::inside_class damn;

> I agree, however, that the error message you got in this case is 
> somewhat confusing.

> Moreover, shouldn't this be handled by the "implicit typename" gcc
> extension? (Mark? Jason?)

No.  implicit typename only works when the context is a template
instantiation, like A<T>, not when it's a template parm itself.

Jason


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