This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24907] [3.4/4.0/4.1/4.2 Regression] "int x, ;" accepted
- From: "machata at post dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Nov 2005 15:31:18 -0000
- Subject: [Bug c++/24907] [3.4/4.0/4.1/4.2 Regression] "int x, ;" accepted
- References: <bug-24907-296@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from machata at post dot cz 2005-11-21 15:31 -------
Created an attachment (id=10311)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10311&action=view)
Allow comma only on second and further passes of declarator processing loop.
The patch addresses the problem by eating comma at the beginning of loop which
processes declarators, and only eating it when it's second or later pass.
Testcase is in patch, make check-g++ passed on i686-pc-linux-gnu.
I'll do bootstrap and more thorough test tomorrow, and send the patch to
gcc-patches then.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24907