This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14000] Can create and use datum of a type you cannot name
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Feb 2004 17:20:37 -0000
- Subject: [Bug c++/14000] Can create and use datum of a type you cannot name
- References: <20040203154818.14000.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From igodard at pacbell dot net 2004-02-03 17:20 -------
It's fine to say you can't have a type "int&*". But then:
int i;
int& j = i;
&j
should fail too. Because if this works you in fact have the type "int&*", namely:
typeof(&j)
What are you going to do if the code does RTTI on that typeof, for example?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14000