This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/481: gcc 2.96 type crash on member pointer to union member



>Number:         481
>Category:       c++
>Synopsis:       gcc 2.96 type crash on member pointer to union member
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 20 22:26:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jason Schroeder
>Release:        gcc version 2.96 20000817 (experimental)
>Organization:
>Environment:
N/A  (i686,Linux,2.2.15)
>Description:
I suspect the small example is legal code.

Getting the member pointer to a field works correctly.
When that field is mentioned as a component of a union the
type checking code complains and crashes the compiler.

I think the crash and the error are both incorrect.
>How-To-Repeat:
c++ foo.cpp
>Fix:
No fix.  g++ or I are at fault. 
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="foo.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="foo.cpp"

I2luY2x1ZGUgPHN0ZGlvLmg+CgpjbGFzcyB5YWRhIHsKcHVibGljOgogICAgdW5pb24gewoJaW50
IGludGVnZXI7CiAgICB9IHU7CiAgICB5YWRhKCkgeyB1LmludGVnZXIgPSAwOyB9Cn07Cgp0eXBl
ZGVmIGludCB5YWRhOjoqSU5UX0lOX1lBREE7CgppbnQgbWFpbihpbnQgYXJnYyxjaGFyICoqYXJn
dikgewogICAgeWFkYSB5OwogICAgSU5UX0lOX1lBREEgbWVtYmVyID0gJnlhZGE6OnUuaW50ZWdl
cjsKCiAgICBwcmludGYoIiVkXG4iLCh5LiptZW1iZXIpKTsKICAgIAp9Cg==

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]