public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11789] New: rejects legal, multiple inheritance (inheriting from same class twice)
@ 2003-08-04 15:06 shuki_duv at yahoo dot com
  2003-08-04 19:43 ` [Bug c++/11789] " pinskia at physics dot uc dot edu
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: shuki_duv at yahoo dot com @ 2003-08-04 15:06 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11789

           Summary: rejects legal, multiple inheritance (inheriting from
                    same class twice)
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: shuki_duv at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org

struct Base {
  int b;
  
  Base(int b) : b(b) { }
};

struct Derived : public Base {
  Derived(int d) : Base(d) { }
};

struct Final : public Derived, public Base {
  Final(int f) : Derived(f), Base(f-1) { }
};

int main()
{
  Final f(5);
}

gcc reports this as ambigous, although the ambiguity arises only when trying to
refer to Final via Base.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-08-11 10:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-04 15:06 [Bug c++/11789] New: rejects legal, multiple inheritance (inheriting from same class twice) shuki_duv at yahoo dot com
2003-08-04 19:43 ` [Bug c++/11789] " pinskia at physics dot uc dot edu
2003-08-04 23:21 ` reichelt at gcc dot gnu dot org
2003-08-05  2:26 ` pinskia at physics dot uc dot edu
2003-08-11  2:49 ` cvs-commit at gcc dot gnu dot org
2003-08-11  2:59 ` mmitchel at gcc dot gnu dot org
2003-08-11 10:50 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).