This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/2935: internal compiler error gcc
- To: deepblur at gmx dot net, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, rodrigc at gcc dot gnu dot org, nathan at gcc dot gnu dot org
- Subject: Re: c++/2935: internal compiler error gcc
- From: rodrigc at gcc dot gnu dot org
- Date: 13 Jun 2001 04:13:12 -0000
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