re PR c/39605 ("error: variable-size type declared outside of any function" is issued twice)
PR c/39605 * c-decl.c (grokdeclarator): Pedwarn for file-scope array declarator whose size is not an integer constant expression but folds to an integer constant, then treat it as a constant subsequently. testsuite: * gcc.dg/vla-17.c, gcc.dg/vla-18.c: New tests. * gcc.dg/pr25682.c: Update expected diagnostics. From-SVN: r145405
Showing
gcc/testsuite/gcc.dg/vla-17.c
0 → 100644
gcc/testsuite/gcc.dg/vla-18.c
0 → 100644
Please
register
or
sign in
to comment