public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10091: [3.3 regression] [parisc] ICE in cp_expr_size, at cp/cp-lang.c:307
@ 2003-03-17 18:41 jason
  0 siblings, 0 replies; 3+ messages in thread
From: jason @ 2003-03-17 18:41 UTC (permalink / raw)
  To: debian-gcc, gcc-bugs, gcc-prs, jason, nobody, parisc-linux, tausq

Synopsis: [3.3 regression] [parisc] ICE in cp_expr_size, at cp/cp-lang.c:307

Responsible-Changed-From-To: unassigned->jason
Responsible-Changed-By: jason
Responsible-Changed-When: Mon Mar 17 18:41:17 2003
Responsible-Changed-Why:
    got it

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10091


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/10091: [3.3 regression] [parisc] ICE in cp_expr_size, at cp/cp-lang.c:307
@ 2003-03-18  4:37 jason
  0 siblings, 0 replies; 3+ messages in thread
From: jason @ 2003-03-18  4:37 UTC (permalink / raw)
  To: debian-gcc, gcc-bugs, gcc-prs, jason, parisc-linux, tausq

Synopsis: [3.3 regression] [parisc] ICE in cp_expr_size, at cp/cp-lang.c:307

State-Changed-From-To: analyzed->closed
State-Changed-By: jason
State-Changed-When: Tue Mar 18 04:37:24 2003
State-Changed-Why:
    OK, I was wrong; the backend does track alignment info, the
    problem was the frontend tacking on a INDIRECT_REF/NOP_EXPR/ADDR_EXPR
    sequence between the COMPONENT_REFs.  Fixed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10091


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/10091: [3.3 regression] [parisc] ICE in cp_expr_size, at cp/cp-lang.c:307
@ 2003-03-17 23:33 jason
  0 siblings, 0 replies; 3+ messages in thread
From: jason @ 2003-03-17 23:33 UTC (permalink / raw)
  To: debian-gcc, gcc-bugs, gcc-prs, jason, parisc-linux, tausq

Synopsis: [3.3 regression] [parisc] ICE in cp_expr_size, at cp/cp-lang.c:307

State-Changed-From-To: open->analyzed
State-Changed-By: jason
State-Changed-When: Mon Mar 17 23:33:58 2003
State-Changed-Why:
    The problem is that the #pragma pack means that _GEIdx::addr
    might not have the usual alignment of an ftn_addr, so we
    can't just take the address of current.addr in order to bind
    it to a reference.  expand_expr knows this, and tries to
    make a bitwise copy and take the address of that.  But since
    ftn_addr has a copy constructor, we can't make bitwise
    copies, so we abort.
    
    Now, in your particular testcase ftn_golded_nodelist_index::current
    does in fact have enough alignment for a ftn_addr, so we'd
    be OK just using the address of current.addr (it would be
    different if either of the latter two classes began with,
    say, a char field).  But the backend doesn't currently track
    alignment info from enclosing classes, so we are conservative
    and fail.
    
    We used to err in the other direction: taking the address of
    a packed field would lose any information about it possibly
    having less alignment, and things trying to use the resulting
    pointer could get a bus error.  See g++.dg/other/packed1.C.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10091


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-18  4:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-17 18:41 c++/10091: [3.3 regression] [parisc] ICE in cp_expr_size, at cp/cp-lang.c:307 jason
2003-03-17 23:33 jason
2003-03-18  4:37 jason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).