re PR c++/33836 (ICE with invalid use of &&)
authorJakub Jelinek <jakub@redhat.com>
Mon, 5 Nov 2007 08:18:03 +0000 (09:18 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 5 Nov 2007 08:18:03 +0000 (09:18 +0100)
commitf370e66bb8c7fe4b8fe694dd79f13e834b4e7575
tree621f3e5c2cfd28d23aa3ab9568e1678a9a43b766
parent1b021ff438d08470cb72ee3e8e75029bda7989f1
re PR c++/33836 (ICE with invalid use of &&)

PR c++/33836
* parser.c (cp_parser_unary_expression): For &&label call
cp_parser_non_integral_constant_expression and return error_mark_node
if it returned true.

* g++.dg/ext/label10.C: New test.

From-SVN: r129896
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/label10.C [new file with mode: 0644]