re PR c++/41185 (size of array ... has non-integral type ...)
commitfb077955541f329953d7f1e4e6c026e62faa30a8
authorJason Merrill <jason@redhat.com>
Tue, 30 Mar 2010 21:19:23 +0000 (30 17:19 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 30 Mar 2010 21:19:23 +0000 (30 17:19 -0400)
tree22d722eb9df61b144415c5522e89d9e303d6247a
parent5847e8da2f62aa638ca037e2e02ef6f2de2975a0
re PR c++/41185 (size of array ... has non-integral type ...)

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.

From-SVN: r157838
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/ambig5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/varmod1.C