[Bug c++/34271] [4.3 regression] ICE in invalid initialization of static template member
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Dec 5 10:45:00 GMT 2007
------- Comment #2 from jakub at gcc dot gnu dot org 2007-12-05 10:45 -------
Subject: Bug 34271
Author: jakub
Date: Wed Dec 5 10:45:21 2007
New Revision: 130619
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130619
Log:
PR c++/34271
* semantics.c (finish_decltype_type): For SCOPE_REF issue an
error instead of assertion failure.
* parser.c (cp_parser_decltype): If closing paren is not found,
return error_mark_node.
* g++.dg/cpp0x/decltype9.C: New test.
* g++.dg/cpp0x/decltype10.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/decltype10.C
trunk/gcc/testsuite/g++.dg/cpp0x/decltype9.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34271
More information about the Gcc-bugs
mailing list