[Bug c++/37552] [4.4 regression] ICE with invalid array access
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Sep 17 16:09:00 GMT 2008
------- Comment #1 from jakub at gcc dot gnu dot org 2008-09-17 16:08 -------
Subject: Bug 37552
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
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37552
More information about the Gcc-bugs
mailing list