re PR c++/33839 (ICE with decltype)
authorDouglas Gregor <doug.gregor@gmail.com>
Fri, 26 Oct 2007 17:53:56 +0000 (17:53 +0000)
committerDoug Gregor <dgregor@gcc.gnu.org>
Fri, 26 Oct 2007 17:53:56 +0000 (17:53 +0000)
commit2b536806afcb297162fdc44e04cbf6f2c21e66aa
treea3ebc65c79de58f41f9284753147b993bb695f98
parent3f28024c07613ff04305839df0cfb1c098572d2e
re PR c++/33839 (ICE with decltype)

2007-10-26  Douglas Gregor  <doug.gregor@gmail.com>

PR c++/33839
* parser.c (cp_parser_decltype): Return ERROR_MARK_NODE if we
don't see the leading '('. Only lookup names if we get an
IDENTIFIER_NODE.

2007-10-26  Douglas Gregor  <doug.gregor@gmail.com>

* g++.dg/cpp0x/pr33839.C: New.

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