This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21510] Possible bug
- From: "sven at clio dot in-berlin dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 May 2005 14:08:35 -0000
- Subject: [Bug c++/21510] Possible bug
- References: <20050511102800.21510.sven@clio.in-berlin.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From sven at clio dot in-berlin dot de 2005-05-15 14:08 -------
(In reply to comment #3)
> The code is invalid. In the section 14.8.2 [temp.deduct] paragraph 2 of the
> standard
> does not include creating a class with invalid base class.
If there is no other way to distinguish reliable between unions and classes,
add it into the extension list. Unions should be avoided in object oriented
design, anyway, but it is a nice-to-have feature.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21510