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]
Other format: [Raw text]

Re: c++/9634: Problems with templates (SFINAE)


First blush seems "obvious" that a template keyword is
needed:

9c9
<     enum { Yes = sizeof(IsFunctionT<T>::test<T>(0)) == 1 };
---
>     enum { Yes = sizeof(IsFunctionT<T>::template test<T>(0)) == 1 };

however, some front-ends (e.g., EDG) accept it also without...

Paolo.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9634


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