Bug report
Philippe Bouchard
boucp00@DMI.USherb.CA
Fri Sep 10 00:02:00 GMT 1999
Version:
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)
Source file:
#include <iostream.h>
template <class SAME> struct test {
ÃÂ ÃÂ void func() { cout<<__PRETTY_FUNCTION__<<endl;
}
ÃÂ ÃÂ };
ÃÂ
struct A : test<A> {
ÃÂ ÃÂ };
struct B : virtual A, test<B> {
ÃÂ ÃÂ };
void main() {
ÃÂ ÃÂ B b;
ÃÂ ÃÂ b.test::func();
ÃÂ ÃÂ //b.A::test::func();
ÃÂ ÃÂ }
Command & output:
[...]$ g++ include.cc
include.cc: In function `int main(...)':
include.cc:15: Internal compiler error.
include.cc:15: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
include.cc:15: See <URL: http://egcs.cygnus.com/faq.html#bugreport >
for details.
ÃÂ
More information about the Gcc-bugs
mailing list