[Bug c++/29087] [4.1/4.2 Regression] More than 35000 switch cases crash cc1plus

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Sep 15 08:26:00 GMT 2006



------- Comment #1 from rguenth at gcc dot gnu dot org  2006-09-15 08:26 -------
Confirmed.  It looks like the C++ frontend recursively parses switch
statements...

#1052 0x0815ceae in cp_parser_statement (parser=0xb7d85ea0,
    in_statement_expr=0x0)
    at /space/rguenther/src/svn/gcc-4_1-branch/gcc/cp/parser.c:6101
#1053 0x0815d1f5 in cp_parser_labeled_statement (parser=0xb7d85ea0,
    in_statement_expr=0x0)
    at /space/rguenther/src/svn/gcc-4_1-branch/gcc/cp/parser.c:6274
#1054 0x0815ceae in cp_parser_statement (parser=0xb7d85ea0,
    in_statement_expr=0x0)
    at /space/rguenther/src/svn/gcc-4_1-branch/gcc/cp/parser.c:6101
#1055 0x0815d1f5 in cp_parser_labeled_statement (parser=0xb7d85ea0,
    in_statement_expr=0x0)
    at /space/rguenther/src/svn/gcc-4_1-branch/gcc/cp/parser.c:6274
...


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|sparc-sun-solaris2.8        |
   GCC host triplet|sparc-sun-solaris2.8        |
 GCC target triplet|sparc-sun-solaris2.8        |
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.1.0 4.1.2 4.2.0
      Known to work|                            |4.0.3
   Last reconfirmed|0000-00-00 00:00:00         |2006-09-15 08:26:42
               date|                            |
            Summary|More than 35000 switch cases|[4.1/4.2 Regression] More
                   |crash cc1plus               |than 35000 switch cases
                   |                            |crash cc1plus
   Target Milestone|---                         |4.1.2


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



More information about the Gcc-bugs mailing list