c++/288: Re: internal compiler error 990505
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Wed Jun 7 13:06:00 GMT 2000
>Number: 288
>Category: c++
>Synopsis: internal compiler error 990505
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: analyzed
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Wed Jun 07 13:06:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Julian.Bock@t-online.de (Julian v. Bock)
>Release: 2.95.2
>Organization:
>Environment:
>Description:
Date: Wed, 7 Jun 2000 09:42:14 +0200
Original-Message-Id: <00060710013000.04509@KernelPanic>
Hi!
gcc 2.95.2 aborts with an internal compiler error while compiling the following
piece of code on a i686-pc-linux-gnu system.
-----
class foo
{
public:
int asd;
typeof( foo::asd )
bar() { return 0; }
};
-----
# g++ bug.cc -S
bug.cc: In method `int foo::* foo::bar()':
bug.cc:7: Internal compiler error 990505.
bug.cc:7: Please submit a full bug report.
The following code is compiled without problems:
-----
class foo
{
public:
int asd;
int foo::*
test1() { return 0; }
typeof( foo::asd )
test2();
};
-----
It seems that gcc fails only, when typeof is used and an implementation is
provided.
verbose g++ output:
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ bug.cc /tmp/ccbLZvtv.ii
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3
/usr/include
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../i686-pc-linux-gnu/include
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/cc1plus /tmp/ccbLZvtv.ii -quiet -dumpbase bug.cc -version -o bug.s
GNU C++ version 2.95.2 19991024 (release) (i686-pc-linux-gnu) compiled by GNU C version 2.95.2 19991024 (release).
bug.cc: In method `int foo::* foo::bar()':
bug.cc:7: Internal compiler error 990505.
bug.cc:7: Please submit a full bug report.
bug.cc:7: See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.
Julian
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list