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++/25904] New: ICE on invalid code in switch stmt


Using gcc (GCC) 4.1.0 20051026 (experimental), 
the following code will generate an ICE. 

Sorry, I currently don't have the time to test the latest version of 
gcc. 

---------<test.cc>----------
void foo()
{
  int t;
  switch(t)
  {
    case 0: A();
    case 1: A();
  }
}
---------------------------

test.cc: In function 'void foo()':
test.cc:6: error: 'A' was not declared in this scope
test.cc:7: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in decl_jump_unsafe, at cp/decl.c:2153
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Regards,
Wolfgang


-- 
           Summary: ICE on invalid code in switch stmt
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wwieser at gmx dot de
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25904


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