diff options
author | Joseph Myers <joseph@codesourcery.com> | 2009-04-25 22:19:09 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2009-04-25 22:19:09 +0100 |
commit | 24070fcb42eca4e9df8129f9c3ffb3cf71379fa5 (patch) | |
tree | 8c910c03d4c980b208b9616acc0764a504105241 /gcc/c-decl.c | |
parent | afdb7762cb3eb4f2e14a0fd3a774008f684210e8 (diff) | |
download | gcc-24070fcb42eca4e9df8129f9c3ffb3cf71379fa5.zip gcc-24070fcb42eca4e9df8129f9c3ffb3cf71379fa5.tar.gz gcc-24070fcb42eca4e9df8129f9c3ffb3cf71379fa5.tar.bz2 |
re PR c/39582 (bad errors for some uses of [*] arrays)
PR c/39582
* c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
type is an integer constant.
testsuite:
* gcc.dg/vla-20.c: New test.
From-SVN: r146787
Diffstat (limited to 'gcc/c-decl.c')
0 files changed, 0 insertions, 0 deletions