This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r111564 - in /branches/gcc-4_0-branch/gcc: Chan...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 28 Feb 2006 11:36:26 -0000
- Subject: r111564 - in /branches/gcc-4_0-branch/gcc: Chan...
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