This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/41786] [4.4/4.5 regression] misparsing an object declaration - parameter may not have variably modified type



------- Comment #4 from jason at gcc dot gnu dot org  2010-03-30 21:19 -------
Subject: Bug 41786

Author: jason
Date: Tue Mar 30 21:19:23 2010
New Revision: 157838

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157838
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:
    trunk/gcc/testsuite/g++.dg/parse/ambig5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/parse/varmod1.C


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41786


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]