[Bug c++/26577] [4.0/4.1/4.2 regression] ICE in cp_expr_size with volatile and call to static
dnovillo at redhat dot com
gcc-bugzilla@gcc.gnu.org
Mon Jun 12 12:16:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list