]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/34271 (ICE in invalid initialization of static template member)
authorJakub Jelinek <jakub@redhat.com>
Wed, 5 Dec 2007 10:45:21 +0000 (11:45 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 5 Dec 2007 10:45:21 +0000 (11:45 +0100)
commit91929b4dee6788fdfbaee519272b8d027b3d47ba
treee4f95a8babd3e9a324a6a69a07ea38fb5fddd190
parentc0742514bdd2e2e51b3bfcf267719bf5f9a146f0
re PR c++/34271 (ICE in invalid initialization of static template member)

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.

From-SVN: r130619
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/decltype10.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/decltype9.C [new file with mode: 0644]