Bug 22125 - ICE on invalid code.
Summary: ICE on invalid code.
Status: RESOLVED DUPLICATE of bug 22028
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-19 20:11 UTC by Pawel Sikora
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i686-pld-linux
Target: i686-pld-linux
Build: i686-pld-linux
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Sikora 2005-06-19 20:11:55 UTC
void foo() 
{ 
    struct { 
        struct a _a; 
    } c; 
} 
 
$ gcc bug.c 
bug.c: In function 'foo': 
bug.c:4: error: field '_a' has incomplete type 
bug.c:5: internal compiler error: tree check: expected class 'type', 
         have 'exceptional' (error_mark) in gimplify_type_sizes, 
         at gimplify.c:4491 
 
gcc version 4.1.0 20050619
Comment 1 Andrew Pinski 2005-06-19 20:15:44 UTC
Even though PR 22028 has a different testcase this is the same bug.

*** This bug has been marked as a duplicate of 22028 ***