public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4584: g++ 3.0.1 fails to allow access to member field address
@ 2001-12-15 11:50 nathan
  0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2001-12-15 11:50 UTC (permalink / raw)
  To: calvin.austin, gcc-bugs, gcc-prs, hui.huang, nobody

Synopsis: g++ 3.0.1 fails to allow access to member field address

State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Sat Dec 15 11:50:32 2001
State-Changed-Why:
    The code is illformed. -> requires a pointer to class object
    a null pointer is not a pointer to an object

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


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

* Re: c++/4584: g++ 3.0.1 fails to allow access to member field address
@ 2002-01-04  2:04 nathan
  0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2002-01-04  2:04 UTC (permalink / raw)
  To: calvin.austin, gcc-bugs, gcc-prs, hui.huang, nobody

Synopsis: g++ 3.0.1 fails to allow access to member field address

State-Changed-From-To: closed->analyzed
State-Changed-By: nathan
State-Changed-When: Fri Jan  4 02:04:56 2002
State-Changed-Why:
    We should really accept this, it is because of the new
    abi, that the base is not at offset zero. I think we may
    even guarantee that this offsetof like thing works for
    non-virtual single inheritance.

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


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

* c++/4584: g++ 3.0.1 fails to allow access to member field address
@ 2001-10-16 13:56 calvin.austin
  0 siblings, 0 replies; 3+ messages in thread
From: calvin.austin @ 2001-10-16 13:56 UTC (permalink / raw)
  To: gcc-gnats; +Cc: hui.huang

>Number:         4584
>Category:       c++
>Synopsis:       g++ 3.0.1 fails to allow access to member field address
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 16 13:56:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     calvin.austin@sun.com
>Release:        gcc 3.0.1
>Organization:
>Environment:
Redhat Linux 7.1
>Description:
Previously valid C++ code for Windows Visual C++ and
Solaris Forte workshop is now failing with gcc 3.0.1
worked on previous 2.x trains

The change occured during a "function rename"

http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?r1=1.523&r2=1.524&f=h

in particular this line

TYPE_BASE_CONVS_MAY_REQUIRE_CODE_P (ref) |= TYPE_BASE_CONVS_MAY_REQUIRE_CODE_P (basetype);

>How-To-Repeat:
g++ test.cpp
>Fix:
remove this line above
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.cpp"

I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYWxsb2MuaD4KIAojaWZuZGVmIE5VTEwKI2Rl
ZmluZSBOVUxMIDBMCiNlbmRpZgoKIAoKY2xhc3MgdGhyZWFkc2hhZG93IHsKcHVibGljOgogICAg
aW50IGRhdGE7Cn07CgpjbGFzcyBPU1RocmVhZCB7CiBwdWJsaWM6CiBPU1RocmVhZChpbnQgd2lk
dGgpOwogT1NUaHJlYWQoaW50IHdpZHRoLCBpbnQgdHlwZSk7CiB2aXJ0dWFsIHZvaWQgcHJpbnRf
cmF3KGNvbnN0IGNoYXIqIGMpOwp9Owogdm9pZCBPU1RocmVhZDo6cHJpbnRfcmF3KGNvbnN0IGNo
YXIqIGMpIHsKfQoKY2xhc3MgVGhyZWFkIDogcHVibGljIHRocmVhZHNoYWRvdyB7CnB1YmxpYzoK
ICAgVGhyZWFkKCk7CiAgIHZpcnR1YWwgdm9pZCBwcmludF9yYXcoY29uc3QgY2hhciogYyk7CnBy
b3RlY3RlZDoKICAgT1NUaHJlYWQqIHgyOwoKfTsKClRocmVhZDo6VGhyZWFkKCkgewogICAgeDI9
TlVMTDsKfQoKdm9pZCBUaHJlYWQ6OnByaW50X3Jhdyhjb25zdCBjaGFyKiBjKSB7Cn0KIApjbGFz
cyBKYXZhVGhyZWFkIDogcHVibGljIFRocmVhZCB7CnB1YmxpYzoKICAgICBKYXZhVGhyZWFkKCk7
CiAgICAgaW50IGNhbGMoKSB7CiAgICAgICAgcHJpbnRmKCJvZmZzZXQ9JXhcbiIsIGludCgoaW50
KShsb25nKSYoKChKYXZhVGhyZWFkKilOVUxMKS0+eDIpKSk7CiAgICAgICAgcmV0dXJuIDA7CiAg
ICAgfQp9OwogCkphdmFUaHJlYWQ6OkphdmFUaHJlYWQoKSA6IFRocmVhZCgpIHsKfQoKbWFpbiAo
KQp7CiAgICBKYXZhVGhyZWFkKiB0PW5ldyBKYXZhVGhyZWFkKCk7CiAgICB0LT5jYWxjKCk7Cn0K
Cgo=


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

end of thread, other threads:[~2002-01-04 10:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-15 11:50 c++/4584: g++ 3.0.1 fails to allow access to member field address nathan
  -- strict thread matches above, loose matches on Subject: below --
2002-01-04  2:04 nathan
2001-10-16 13:56 calvin.austin

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