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