This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r140422 - in /trunk/gcc: cp/ChangeLog cp/typeck...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 17 Sep 2008 16:07:09 -0000
- Subject: r140422 - in /trunk/gcc: cp/ChangeLog cp/typeck...
Author: jakub
Date: Wed Sep 17 16:07:08 2008
New Revision: 140422
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140422
Log:
PR c++/37552
* typeck.c (build_array_ref): Use protected_set_expr_location instead
of SET_EXPR_LOCATION when ret might not be an expression.
* g++.dg/parse/crash49.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/parse/crash49.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog