http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50309
Bug #: 50309
Summary: [4.6/4.7 Regression] [C++0x] ICE: tree check: expected
tree_list, have error_mark in comp_except_specs, at
cp/typeck.c:1014 on empty noexcept
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: [email protected]
ReportedBy: [email protected]
======== testcase.C ========
void foo () noexcept () {}
============================
Gives in 4.6 and 4.7:
$ gcc -std=gnu++0x testcase.C
testcase.C:1:23: error: expected primary-expression before ')' token
testcase.C:1:23: internal compiler error: tree check: expected tree_list, have
error_mark in comp_except_specs, at cp/typeck.c:1016
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r178555 - crash
4.6 r177922 - crash
4.5 r177922 - noexcept is not recognized