This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/2171: g++ Internal error #19990916.
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2171: g++ Internal error #19990916.
- From: mayer at tux dot org
- Date: Sun, 4 Mar 2001 12:16:09 -0800
- Reply-To: mayer at tux dot org
>Number: 2171
>Category: c++
>Synopsis: g++ Internal error #19990916.
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Sun Mar 04 14:26: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:
g++ creates internal compiler error:
bug.cc: In member function `void list::sort()':
bug.cc:11: parse error at end of input
bug.cc:11: Internal error #19990916.
bug.cc:11: Internal compiler error in poplevel, at cp/decl.c:1275
Please submit a full bug report, with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
command line:
g++ bug.cc
The file bug.cc:
class list{
public:
void sort();
};
void list::sort(){
if (true){
}
The file bug.ii:
# 1 "bug.cc"
class list{
public:
void sort();
};
void list::sort(){
if (true){
}
>Fix:
Don't have a fix, but I noticed that the ice goes away if the function sort
is not scoped to list. That is, if one has "void sort(){" instead of
"void list::sort()){" one obtains a "parse error at end of input", which is
correct behavior by g++.
>Release-Note:
>Audit-Trail:
>Unformatted: