[Bug c++/38647] [4.2/4.3/4.4 regression] ICE using __FUNCTION__ as template parameter
--- Comment #2 from jakub at gcc dot gnu dot org 2008-12-31 11:47 --- Subject: Bug 38647 Author: jakub Date: Wed Dec 31 11:46:18 2008 New Revision: 142978 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142978 Log: PR c++/38647 * parser.c (cp_parser_primary_expression) : Return error_mark_node if cp_parser_non_integral_constant_expression returns true. * g++.dg/template/function1.C: New test. Added: trunk/gcc/testsuite/g++.dg/template/function1.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38647
[Bug c++/38647] [4.2/4.3/4.4 regression] ICE using __FUNCTION__ as template parameter
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38647
[Bug c++/38647] [4.2/4.3/4.4 regression] ICE using __FUNCTION__ as template parameter
--- 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 struct A {}; template struct A<__FUNCTION__, N> {}; char a1[1]; A 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|-00-00 00:00:00 |2008-12-27 23:43:00 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38647
[Bug c++/38647] [4.2/4.3/4.4 regression] ICE using __FUNCTION__ as template parameter
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.2.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38647