Solution

Philippe Bouchard boucp00@DMI.USherb.CA
Fri Sep 10 00:15:00 GMT 1999


I have found a solution for the previous bug report I've sent. The following:
#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.::A::test<A>::func();
   //b.::test<B>::func();
   }
Writes out:
void test<A>::func<A>()
void test<B>::func<B>()
... but what is the problem with the previous bug report?
Are "Internal Compiler Errors" user errors or really compiler errors?



More information about the Gcc-bugs mailing list