Anonymous structs with duplicate members within unions
Mark Mitchell
mark@codesourcery.com
Wed Jan 19 03:02:00 GMT 2005
Steven L. Zook wrote:
> "As such, they are ambiguous."
>
> That seems a little harsh :-(
No; uDerf::A is ambiguous. Which one is it? You seem to be seeing that
you want the A in the two anonymous structs to be merged together.
There's no precedent for that in any compiler I've ever seen. If
they're not merged together, then they're ambiguous, in the sense that
the C++ standard uses that term.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304
More information about the Gcc
mailing list