Commit d7ae6cfb by Andrew Pinski Committed by Andrew Pinski

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
parent 297abd0d
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
......
/* { 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];
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment