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/39581] VLA types at file scope wrongly rejected



------- Comment #1 from jsm28 at gcc dot gnu dot org  2009-04-26 17:00 -------
Subject: Bug 39581

Author: jsm28
Date: Sun Apr 26 17:00:04 2009
New Revision: 146806

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146806
Log:
        PR c/39581
        * c-decl.c (global_bindings_p): Return negative value.
        (c_variable_size): New.  Based on variable_size from
        stor-layout.c.
        (grokdeclarator): Call c_variable_size not variable_size.

testsuite:
        * gcc.dg/c99-const-expr-14.c, gcc.dg/gnu99-const-expr-4.c,
        gcc.dg/vla-21.c: New tests.

Added:
    trunk/gcc/testsuite/gcc.dg/c99-const-expr-14.c
    trunk/gcc/testsuite/gcc.dg/gnu99-const-expr-4.c
    trunk/gcc/testsuite/gcc.dg/vla-21.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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