This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/481: gcc 2.96 type crash on member pointer to union member
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/481: gcc 2.96 type crash on member pointer to union member
- From: fiddlestyx at subnature dot com
- Date: 21 Aug 2000 05:20:28 -0000
- Reply-To: fiddlestyx at subnature dot com
- Resent-Cc: gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, jason at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, fiddlestyx@subnature.com
>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==