This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21425] typeof with parens rejected
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Dec 2008 21:52:59 -0000
- Subject: [Bug c++/21425] typeof with parens rejected
- References: <bug-21425-7611@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from tkoenig at gcc dot gnu dot org 2008-12-25 21:52 -------
This works now:
$ cat foo.c
int a; // ok
int (b); // ok
typeof(a) c; // ok
typeof(a) (d); // error
$ gcc -S foo.c
$ gcc-4.3 -S foo.c
$ gcc-4.2 -S foo.c
(may originally have been caused by the missing semicolon, or
this might have been a cut+paste error)
--
tkoenig at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21425