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: Problems with static member templates


> Both programs are legal C++ AFAICT; both produced error messages.  I
> would appreciate it if you could look into them.

Thanks for your bug report. Your first program is not legal; the construct

         T::foo<T>();

should read

         T::template foo<T>();

since T is a dependent name.

The mainline compiler (2.96 20000302 (experimental)) accepts your
second version just fine, so the bug appears to be fixed.

Regards,
Martin

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