Bug 11308

Summary: [3.3 regression] ICE when calling a function on an enum type
Product: gcc Reporter: Robert Schiele <rschiele>
Component: c++Assignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED FIXED    
Severity: minor CC: gcc-bugs
Priority: P2 Keywords: ice-on-invalid-code, monitored
Version: 3.3.1   
Target Milestone: 3.3.1   
Host: i486-suse-linux Target: i486-suse-linux
Build: i486-suse-linux Known to work:
Known to fail: Last reconfirmed: 2003-07-01 00:20:46

Description Robert Schiele 2003-06-24 14:53:19 UTC
gcc 3.3.x ICEs on the following invalid code: 
 
enum a { }; 
void b() { 
    a::c(); 
} 
 
# g++ -c test.cc 
test.cc: In function `void b()': 
test.cc:3: internal compiler error: Segmentation fault 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
gcc 3.4 handles the case correctly.
Comment 1 Wolfgang Bangerth 2003-06-24 16:27:23 UTC
Confirmed, a regression in 3.3 w.r.t. 3.2 on really broken code.
Already fixed in 3.4.

W.
Comment 2 Volker Reichelt 2003-07-02 08:02:21 UTC
Now also fixed for gcc 3.3.1 (probably by Marks patch for PR 11149).