re PR c++/46852 (ICE: tree check: expected class ‘type’, have ‘exceptional’ (error_ma...
authorNathan Froyd <froydnj@codesourcery.com>
Thu, 16 Dec 2010 01:33:03 +0000 (01:33 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Thu, 16 Dec 2010 01:33:03 +0000 (01:33 +0000)
commitb2d49fe5aa6529689c71df4a0635041725cb94d1
treeaf00132afb5ddfd4085a0156def5c76355102427
parent5210bbc5aad878af293a6535973a635c98c6ac47
re PR c++/46852 (ICE: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in cp_parser_class_specifier, at cp/parser.c:16947)

gcc/cp/
PR c++/46852
* parser.c (cp_parser_class_specifier): Check for TYPE_P.

gcc/testsuite/
PR c++/46852
* g++.dg/pr46852.C: New test.

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