------- Comment #1 from pinskia at gcc dot gnu dot org 2008-12-27 23:43 -------
I think we can make this valid GNU C++ by doing:
template<const char *, int> struct A {};
template<int N> struct A<__FUNCTION__, N> {};
char a1[1];
A<a1, 0> a;
--- CUT ---
Though 3.3 rejected it by not defining __FUNCTION__ in the toplevel.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Known to fail| |4.3.0 4.4.0 4.1.1 4.0.1
Known to work| |3.3.3
Last reconfirmed|0000-00-00 00:00:00 |2008-12-27 23:43:00
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38647