public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/3543: gcc-3.0 Internal error #56 in resolve_offset_ref, at cp/init.c:1963
@ 2001-07-03  6:56 niemayer
  0 siblings, 0 replies; 4+ messages in thread
From: niemayer @ 2001-07-03  6:56 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3543
>Category:       c++
>Synopsis:       gcc-3.0 Internal error #56 in resolve_offset_ref, at cp/init.c:1963
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 03 06:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Peter Niemayer
>Release:        gcc version 3.0
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
When compiling the attached test-case source:

> gcc -O3 -c ise_56.cxx 
ise_56.cxx: In member function `virtual long unsigned int Pipe::ewrite(const 
   void*, long unsigned int)':
ise_56.cxx:55: Internal error #56.
ise_56.cxx:55: Internal compiler error in resolve_offset_ref, at cp/init.c:1963

The same small test source compiled with "-O2" instead of
"-O3" works fine, so I assume the new inliner is the cause
of the problem.
>How-To-Repeat:

>Fix:
small rearrangements of the code let the bug disappear,
e.g. replacing

(Writeable::blocking_mode)

by 

(Writeable::blocking_mode == true)

That of course is an ugly workaround, only... :-)
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="ise_56.cxx"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ise_56.cxx"

CmNsYXNzIFJlYWRhYmxlIHsKcHJvdGVjdGVkOgogICAgICAgIGJvb2wgYmxvY2tpbmdfbW9kZTsK
CnB1YmxpYzoKICAgICAgICBSZWFkYWJsZSh2b2lkKSA6IGJsb2NraW5nX21vZGUodHJ1ZSkgeyB9
OwogICAgICAgIHZpcnR1YWwgflJlYWRhYmxlKHZvaWQpIHsgfTsKCn07CgpjbGFzcyBXcml0ZWFi
bGUgewpwcm90ZWN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gaWYgKFdyaXRlYWJsZTo6YmxvY2tp
bmdfbW9kZSkgcmV0dXJuIDA7Cgp9Cg==


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

* Re: c++/3543: gcc-3.0 Internal error #56 in resolve_offset_ref, at cp/init.c:1963
@ 2001-07-25  2:39 nathan
  0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2001-07-25  2:39 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nathan, niemayer

Synopsis: gcc-3.0 Internal error #56 in resolve_offset_ref, at cp/init.c:1963

State-Changed-From-To: analyzed->closed
State-Changed-By: nathan
State-Changed-When: Wed Jul 25 02:39:31 2001
State-Changed-Why:
    fixed on mainline & branch
    2001-07-24  Nathan Sidwell  <nathan@codesourcery.com>
    
    	PR c++/3543
    	* typeck.c (condition_conversion): Resolve an OFFSET_REF.
    	* expr.c (cplus_expand_expr): An OFFSET_REF should never get here.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3543&database=gcc


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

* Re: c++/3543: gcc-3.0 Internal error #56 in resolve_offset_ref, at cp/init.c:1963
@ 2001-07-24  3:18 nathan
  0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2001-07-24  3:18 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nathan, niemayer, nobody

Synopsis: gcc-3.0 Internal error #56 in resolve_offset_ref, at cp/init.c:1963

Responsible-Changed-From-To: unassigned->nathan
Responsible-Changed-By: nathan
Responsible-Changed-When: Tue Jul 24 03:18:00 2001
Responsible-Changed-Why:
    patch in progress - preliminary analysis suggests that
    this is a latent bug, exposed by the new optimizer

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3543&database=gcc


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

* Re: c++/3543: gcc-3.0 Internal error #56 in resolve_offset_ref, at cp/init.c:1963
@ 2001-07-07  7:21 lerdsuwa
  0 siblings, 0 replies; 4+ messages in thread
From: lerdsuwa @ 2001-07-07  7:21 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, niemayer, nobody

Synopsis: gcc-3.0 Internal error #56 in resolve_offset_ref, at cp/init.c:1963

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sat Jul  7 07:21:19 2001
State-Changed-Why:
    Confirm as a bug.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3543&database=gcc


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

end of thread, other threads:[~2001-07-25  2:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-03  6:56 c++/3543: gcc-3.0 Internal error #56 in resolve_offset_ref, at cp/init.c:1963 niemayer
2001-07-07  7:21 lerdsuwa
2001-07-24  3:18 nathan
2001-07-25  2:39 nathan

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).