c++/2935: internal compiler error gcc
rodrigc@gcc.gnu.org
rodrigc@gcc.gnu.org
Tue Jun 12 21:13:00 GMT 2001
Synopsis: internal compiler error gcc
State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Tue Jun 12 21:13:11 2001
State-Changed-Why:
Reproducible test-case not supplied.
Preprocessed source code not supplied.
The following example from the report does not
compile under gcc 3.0:
#include <iostream>
using namespace std;
class debug {
debug (char *name)
{
};
dbgout (char *str)
{
cout << "[" << name << "]: " << str;
}
};
class a:public debug { };
class b:public debug { };
class c:public a, public b {
void foo () {
dbgout ("foo fighter");
}
};
a.cc: In member function `void c::foo()':
a.cc:26: request for member `dbgout' is ambiguous in multiple inheritance
lattice
a.cc:10: candidates are: int debug::dbgout(char*)
a.cc:10: int debug::dbgout(char*)
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2935&database=gcc
More information about the Gcc-bugs
mailing list