This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc version 2.95.2 19991024 (release) : Internal compiler error in `build_insn_chain', at global.c:1756
- From: <rami dot koivunen at nokia dot com>
- To: <bug-gcc at gnu dot org>
- Date: Tue, 19 Mar 2002 15:31:08 +0200
- Subject: gcc version 2.95.2 19991024 (release) : Internal compiler error in `build_insn_chain', at global.c:1756
Originator
Rami Koivunen
Organization
-
Confidential
No
Synopsis
gcc 2.95.2 does not compile the source but gives "bug report" prompt...
Severity
???
Priority
low
Category
c
Class
ice-on-legal-code
GCC gives an Internal Compiler Error (ICE) for correct code.
Release
gcc version 2.95.2 19991024 (release)
Environment
HP-UX bymachine B.10.20 A 9000/785 2012552464 two-user license
Description
$>gcc -Wunused -O -c t.c
t.c: In function `main':
t.c:30: `j_y_state' undeclared (first use in this function)
t.c:30: (Each undeclared identifier is reported only once
t.c:30: for each function it appears in.)
t.c:30: `y_STATE_ACTIVE' undeclared (first use in this function)
t.c:32: `sig' undeclared (first use in this function)
t.c:32: `y_meas_act_data' undeclared (first use in this function)
t.c:41: Internal compiler error in `build_insn_chain', at global.c:1756
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
How-To-Repeat
Compile the following source code with following command:
gcc -Wunused -O -c t.c
Source code:
--------------cut start--------------
typedef enum {
NO_oik,
PSC_oik,
JEE_oik,
SSC_oik,
DEC_oik
}
jee;
jee j_oikvent_code;
main()
{
exit(0);
{
unsigned int loop;
for(loop=0; loop < 2; loop++)
{
}
}
switch(j_oikvent_code) {
case PSC_oik:
break;
case JEE_oik:
if(j_y_state == y_STATE_ACTIVE)
{
y_act_JEE_result(&sig, &y_meas_act_data);
}
break;
case SSC_oik:
break;
case DEC_oik:
break;
}
}
}
--------------cut stop--------------