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]

[Bug c++/29927] template instantiation with function type



------- Comment #6 from bangerth at dealii dot org  2006-11-27 02:00 -------
Excellent, this is exactly the quote that settles this. For 
reference, 14.3.1/3 comes with a (as usual non-normative) example:

  [Example:

     template<class T> struct A {
             static T t;
     };
     typedef int function();
     A<function> a;                  // ill-formed: would declare
                                     // A<function>::t
                                     // as a static member function

   --end example]

So both gcc and icc are wrong.

W.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29927


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