This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]