gcc bug report

Zack Weinberg zack@codesourcery.com
Wed Jan 7 19:31:00 GMT 2004


Petar Maymounkov <petar@scs.cs.nyu.edu> writes:

> Correct, however, the following modified code seems to exhibit a compiler 
> bug:

This code does not even compile with gcc 3.x:

$ g++ test.C
test.C:14: warning: direct base `A' inaccessible in `C' due to ambiguity
test.C: In constructor `C::C()':
test.C:16: error: `A' is an ambiguous base of `C'
test.C:16: error: type `class A' is not a direct or virtual base of `C'

I do not know whether these error messages are correct.

zw



More information about the Gcc-bugs mailing list