This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11487] g++ accepts non-type as type in declaration
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jul 2003 14:26:28 -0000
- Subject: [Bug c++/11487] g++ accepts non-type as type in declaration
- References: <20030710103901.11487.hans.ekkehard.plesser@nlh.no>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11487
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nathan at codesourcery dot
| |com
------- Additional Comments From bangerth at dealii dot org 2003-07-10 14:26 -------
Within the scope of foo, "foo" denotes the type itself, so the code may or
may not be legal. icc rejects it, for one. Nathan, what do you think?
This is most likely related to one PR we have where the out-of-line
constructor of a class is defined as
X::X::X::X () {...}
and this is accepted. I can't find that report right now, though.
W.