------- Comment #9 from jakub at gcc dot gnu dot org 2006-02-28 11:36 ------- Subject: Bug 25682
Author: jakub Date: Tue Feb 28 11:36:26 2006 New Revision: 111564 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111564 Log: PR c/25682 * c-typeck.c (build_unary_op): Fold offsetof-like expressions even when the pointer is not NULL. * decl.c (compute_array_index_type): After issuing not an integral constant-expression error, set size to 1 to avoid ICEs later on. * gcc.dg/pr25682.c: New test. * g++.dg/parse/array-size2.C: New test. Added: branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/array-size2.C branches/gcc-4_0-branch/gcc/testsuite/gcc.dg/pr25682.c Modified: branches/gcc-4_0-branch/gcc/ChangeLog branches/gcc-4_0-branch/gcc/c-typeck.c branches/gcc-4_0-branch/gcc/cp/ChangeLog branches/gcc-4_0-branch/gcc/cp/decl.c branches/gcc-4_0-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25682