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:
Andrew Pinski 2005-08-26 15:14:13 +00:00 committed by Andrew Pinski
parent 297abd0d40
commit d7ae6cfb81
2 changed files with 16 additions and 0 deletions

View File

@ -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

View 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];
}