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: unassig...@gcc.gnu.org
        ReportedBy: zso...@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

Reply via email to