This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: c++/2935: internal compiler error gcc


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]