This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26577] [4.0/4.1/4.2 regression] ICE in cp_expr_size with volatile and call to static
- From: "dnovillo at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jun 2006 12:12:02 -0000
- Subject: [Bug c++/26577] [4.0/4.1/4.2 regression] ICE in cp_expr_size with volatile and call to static
- References: <bug-26577-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from dnovillo at redhat dot com 2006-06-12 12:12 -------
Subject: Re: [4.0/4.1/4.2 regression] ICE in cp_expr_size
with volatile and call to static
mmitchel at gcc dot gnu dot org wrote on 06/05/06 18:37:
> Diego, what say you?
>
Shouldn't COMPLETE_TYPE_P imply that we can compute the size of the
type? That's the requisite we need in this case to emit the load from
the volatile reference. Otherwise, we have no other choice but to throw
it away.
ISTM that if COMPLETE_TYPE_P had the right sizeof semantics, we wouldn't
need the workaround added for 23167.
The only thing the gimplifier can do in this case is throw the reference
out, but
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26577