OSDN Git Service

PR c++/41185
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Mar 2010 21:19:23 +0000 (21:19 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:15:30 +0000 (14:15 +0900)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157838 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/testsuite/ChangeLog

index a8956f7..ea48599 100644 (file)
@@ -1,5 +1,11 @@
 2010-03-30  Jason Merrill  <jason@redhat.com>
 
+       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.
+
        PR c++/43559
        * pt.c (more_specialized_fn): Don't control cv-qualifier check
        with same_type_p.
index 66ce02c..45baae8 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-30  Jason Merrill  <jason@redhat.com>
+
+       PR c++/41786
+       * g++.dg/parse/ambig5.C: New.
+
 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
 
        PR debug/43593