This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48212] New: [4.6/4.7 Regression] [C++0x] ICE: in non_const_var_error, at cp/semantics.c:6700 on invalid code
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 20 Mar 2011 16:46:25 +0000
- Subject: [Bug c++/48212] New: [4.6/4.7 Regression] [C++0x] ICE: in non_const_var_error, at cp/semantics.c:6700 on invalid code
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48212
Summary: [4.6/4.7 Regression] [C++0x] ICE: in
non_const_var_error, at cp/semantics.c:6700 on invalid
code
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Created attachment 23730
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23730
reduced testcase
$ gcc -std=gnu++0x testcase.C
testcase.C: In function 'void foo()':
testcase.C:4:17: error: expected primary-expression before ';' token
testcase.C:5:9: error: the value of 'b' is not usable in a constant expression
testcase.C:5:9: internal compiler error: in non_const_var_error, at
cp/semantics.c:6700
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r171193 - crash
4.6 r170955 - crash
4.5 r170955 - crash