struct problems
> Version 2.95 got it right: This is no valid C++ (What happens if someone
> adds a constructor to the struct?).
While this is indeed not well-formed C++ 98, this is a defect in C++
itself (as it breaks C compatibility). Defect Report 80 (which will be
included in the upcoming technical corrigendum) restores C
compatibility again, and makes your example well-formed; see
http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_defects.html#80
g++ already incorporates the resolution to this issue.
The case where a constructor for this class is also present is an
entirely different issue (see the DR).
Regards,
Martin
--
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: