mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-21 05:30:24 +08:00
re PR middle-end/22439 (ICE with char VLA and __SIZE_TYPE__ argument (so no cast))
2005-08-26 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/22439 * gcc.dg/vla-3.c: New test. From-SVN: r103524
This commit is contained in:
parent
297abd0d40
commit
d7ae6cfb81
@ -1,3 +1,8 @@
|
||||
2005-08-26 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
PR middle-end/22439
|
||||
* gcc.dg/vla-3.c: New test.
|
||||
|
||||
2005-08-25 Erik Edelmann <eedelman@acclab.helsinki.fi>
|
||||
|
||||
PR fortran/20363
|
||||
|
11
gcc/testsuite/gcc.dg/vla-3.c
Normal file
11
gcc/testsuite/gcc.dg/vla-3.c
Normal file
@ -0,0 +1,11 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-std=gnu99" } */
|
||||
|
||||
/* This used to crash as we did not preserve the correct type
|
||||
for __SIZE_TYPE__. See PR22439. */
|
||||
|
||||
char foo(__SIZE_TYPE__ n)
|
||||
{
|
||||
char c[1][n];
|
||||
return c[0][0];
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user