This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17605] Using types as names in classes not always allowed
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Sep 2004 12:16:22 -0000
- Subject: [Bug c++/17605] Using types as names in classes not always allowed
- References: <20040922110049.17605.djn@daimi.au.dk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-22 12:16 -------
This is invalid C++, even though it is valid C.
Basically the error message is correct as you cannot change the meaning of a type which you use during
the class in the same class.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17605