This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/578: Internal Compiler Error
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/578: Internal Compiler Error
- From: rafoulks at hopper dot unh dot edu
- Date: 29 Sep 2000 00:58:17 -0000
- Reply-To: rafoulks at hopper dot unh dot edu
- Resent-Cc: gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, jason at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, rafoulks@hopper.unh.edu
>Number: 578
>Category: c++
>Synopsis: Internal Compiler Error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 28 18:06:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Andy Foulks
>Release: egcs-2.91.66
>Organization:
>Environment:
Linux kng517.unh.edu 2.2.16-3 #1 Mon Jun 19 19:11:44 EDT 2000 i686 unknown
>Description:
This test program, extracted from a larger program
that I am working on, causes an internal compiler error
for an in-class static const instance of another class.
I am running Linux 2.2.16 and egcs 2.91.66.
Attached is the bzipped .ii code. The full source code is
so short that I will put it in the "How-To-Repeat" section.
Output of "g++ -v --save-temps test.c++":
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Di386 -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix) -D__EXCEPTIONS -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_i386__ test.c++ test.ii
GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/include/g++-2
/usr/local/include
/usr/i386-redhat-linux/include
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus test.ii -quiet -dumpbase test.cc -version -o test.s
GNU C++ version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386-redhat-linux) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
test.c++:13: Internal compiler error.
test.c++:13: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
test.c++:13: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
>How-To-Repeat:
Type "g++ test.c++" on the command line, where
the file "test.c++" contains the following code:
#include <iostream>
class foo {
public:
foo( int a, int b ) { this->a = a; }
int a;
char b;
float c;
};
class bar {
public:
static const foo myfoo( 4, 5 );
int d;
};
int main()
{
bar b;
cout << "b.myfoo.a is " << b.myfoo.a << endl;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.ii.bz2"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.ii.bz2"
QlpoOTFBWSZTWTlLlvwADPP/gH//+/D5////m+WIDr////9gH7xyAAF2fX3j469t89KOgV601NfP
b75Kragvru29t63p7uKdr5ffZr6fbAfe97ziU2+24HobWBF6VpVJAV16Add2XYjWrQeulFQSmpoQ
0CZTE2kap6np6k0zUAGmgA0YmIAAGgAJTQRATTTSahop7SGo9RoYTRoBkAAAaADQ0BIKJNUxTano
zVNNGmjTymho2oPUAaA9QA0AAANAk0kU0gmlNqep+pptTRMA0Q09TQA0AAADQDQDQSRVP1MhABpo
aA0AADQ0AGgANADRo0AIkiAjQRoEaaDU0YhR4oxpBiGhoAA0ABo6Tu8tk62CUpMhARkIALJEAUFg
DIxJEGIQyB9GiCJWAriYsNoUNAMgWBiSsiKMIsAA7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