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 middle-end/17908] [4.0 Regression] ICE: tree check: expected function_decl, have continue_stmt in c_expand_body, at /c-decl.c:6328


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-10-11 11:47 -------
Here's a reduced testcase:

===========================
int foo()
{
    unsigned char c;
    switch ((int)c)
    {
      case -1:
      case 0:
      case 4:
      case 5:
      case 42:
        return 0;
    }
}
===========================

parse.i: In function 'foo':
parse.i:13: internal compiler error: tree check: expected function_decl, have
error_mark in c_expand_body, at /c-decl.c:6334
Please submit a full bug report, [etc.]

If I replace the 42 with 39 for example, I get a segfault instead.

This might be related to PR 17657.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org


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


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