This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r120497 - in /branches/gcc-4_1-branch/gcc: Chan...
- From: rguenth at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 05 Jan 2007 20:59:18 -0000
- Subject: r120497 - in /branches/gcc-4_1-branch/gcc: Chan...
Author: rguenth
Date: Fri Jan 5 20:59:15 2007
New Revision: 120497
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120497
Log:
2007-01-05 Richard Guenther <rguenther@suse.de>
PR middle-end/27826
* tree.c (get_narrower): Do not construct COMPONENT_REFs
with mismatched types. Instead explicitly build a
conversion NOP_EXPR.
* g++.dg/opt/pr27826.C: New testcase.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/opt/pr27826.C
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/gcc/tree.c