This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12581] [3.4 Regression] gcc rejects typeof use for the return type
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Nov 2003 03:14:09 -0000
- Subject: [Bug c++/12581] [3.4 Regression] gcc rejects typeof use for the return type
- References: <20031011162654.12581.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mmitchel at gcc dot gnu dot org 2003-11-12 03:14 -------
This is not a bug.
It does not compile with GCC (as opposed to G++) and the manual says:
"A `typeof'-construct can be used anywhere a typedef name could be
used."
If that were standardese, it would say that a typeof construct is a
simple-type-specifier, which is what is implemented in the C++ front end.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12581