This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Anonymous structs with duplicate members within unions


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


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