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 00:39:39 +0000 (09:39 +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 eb42b0b..2f6ae04 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 a7af1c6..a561219 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