This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14230] [3.3/3.4/3.5 Regression] ICE in cp_expr_size
- From: "jason at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Mar 2004 21:05:45 -0000
- Subject: [Bug c++/14230] [3.3/3.4/3.5 Regression] ICE in cp_expr_size
- References: <20040221001620.14230.jakub@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jason at redhat dot com 2004-03-02 21:05 -------
Subject: Re: [3.3/3.4/3.5 Regression] ICE in cp_expr_size
Actually, this seems to be a problem with Mark's fix for 11041; using an
INIT_EXPR to initialize a temporary variable from a non-lvalue only elides
the copy if the non-lvalue is a TARGET_EXPR. In this case, it's a
COMPONENT_REF of a TARGET_EXPR, so the INIT_EXPR becomes a bitwise copy, so
cp_expr_size aborts.
Jason
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230