array-size2.C
406 Bytes
-
re PR c/25682 (ICE when using old sytle offsetof (with non zero start) as array size) · 3aa2ddb8
PR c/25682 * c-typeck.c (build_unary_op): Fold offsetof-like expressions even when the pointer is not NULL. cp/ * decl.c (compute_array_index_type): After issuing not an integral constant-expression error, set size to 1 to avoid ICEs later on. testsuite/ * gcc.dg/pr25682.c: New test. * g++.dg/parse/array-size2.C: New test. From-SVN: r109812
Jakub Jelinek committed