This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41185] [4.4/4.5 regression] size of array ... has non-integral type ...
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Mar 2010 21:21:18 -0000
- Subject: [Bug c++/41185] [4.4/4.5 regression] size of array ... has non-integral type ...
- References: <bug-41185-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from jason at gcc dot gnu dot org 2010-03-30 21:21 -------
Subject: Bug 41185
Author: jason
Date: Tue Mar 30 21:20:58 2010
New Revision: 157839
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157839
Log:
PR c++/41185
PR c++/41786
* parser.c (cp_parser_direct_declarator): Don't allow VLAs in
function parameter context. Don't print an error if parsing
tentatively.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/parse/ambig5.C
Modified:
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/parser.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/parse/varmod1.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41185