This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29927] template instantiation with function type
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Nov 2006 02:01:05 -0000
- Subject: [Bug c++/29927] template instantiation with function type
- References: <bug-29927-10812@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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