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