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]

c++/2159: g++ Internal error #122



>Number:         2159
>Category:       c++
>Synopsis:       g++ Internal error #122
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 02 22:46:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Uwe F. Mayer
>Release:        2.97 20010205 (experimental)
>Organization:
tux.org
>Environment:
System: Linux tosca 2.2.18 #1 Sun Feb 25 14:33:05 PST 2001 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-20010205/configure --prefix=/usr/local/gcc --disable-nls
>Description:
Compiler reports internal error.
>How-To-Repeat:
comand line:
g++ bug.cc

command output:
bug.cc: In function `void foo()':
bug.cc:3: parse error before `}' token
bug.cc:3: Internal error #122.
bug.cc:3: Internal compiler error in finish_function, at cp/decl.c:14003
Please submit a full bug report, with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

The file bug.cc (three lines only):
void foo(void){
  if (1==2)
}

The file bug.ii generated by g++ -save-temps bug.cc:
# 1 "bug.cc"
void foo(void){
  if (1==2)
}

>Fix:
Have no fix, but the code is illegal because of unterminated if-statement.
The following code is legal and accepted:
void foo(void){
  if (1==2);
}
>Release-Note:
>Audit-Trail:
>Unformatted:


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