public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4172: scope-qualified member reference, e.g. MyClass::foo, fails
@ 2001-09-04  8:29 nathan
  0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2001-09-04  8:29 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, singer

Synopsis: scope-qualified member reference, e.g. MyClass::foo, fails

State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Tue Sep  4 08:29:09 2001
State-Changed-Why:
    This is fixed in 3.0.1

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


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

* c++/4172: scope-qualified member reference, e.g. MyClass::foo, fails
@ 2001-08-29 10:46 singer
  0 siblings, 0 replies; 2+ messages in thread
From: singer @ 2001-08-29 10:46 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4172
>Category:       c++
>Synopsis:       scope-qualified member reference, e.g. MyClass::foo, fails
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 29 10:46:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     joshua a. sweetkind-singer
>Release:        gcc version 2.95.3 20010315 (release)
>Organization:
>Environment:
Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.3/specs
gcc version 2.95.3 20010315 (release)
>Description:
compiler generates incorrect memory reference for
scope-qualified member, such as MyClass::foo.
>How-To-Repeat:
Compile the attached file and observe the output.
The file is commented and indicates the source line that
compiles incorrectly.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="main.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="main.cpp"

I2luY2x1ZGUgPHN0ZGlvLmg+Ci8qClRoaXMgZmlsZSBpbGx1c3RyYXRlcyBhIGJ1ZyBpbiB0aGUg
Z251IG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KTsKICAgIHByaW50ZigiQzo6Zm9vID0gJWRcbiIsIEM6OmZvbyk7
IAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCgoKICAgIC8vIEJVVCBUSElO
R1MgV09SSyBGSU5FIElGIFlPVSBETyBJVCBUSElTIFdBWQogICAgdGhpcy0+Zm9vID0gMTA7ICAg
ICAgIAogICAgdGhpcy0+Qjo6Zm9vID0gMjA7CiAgICB0aGlzLT5DOjpmb28gPSAzMDsKCiAgICBw
cmludGYoInRoaXMtPmZvbyA9ICVkXG4iLCB0aGlzLT5mb28pOwogICAgcHJpbnRmKCJ0aGlzLT5C
Ojpmb28gPSAlZFxuIiwgdGhpcy0+Qjo6Zm9vKTsKICAgIHByaW50ZigidGhpcy0+Qzo6Zm9vID0g
JWRcbiIsIHRoaXMtPkM6OmZvbyk7CgogIH0KfTsKCgoKCmludCBtYWluKGludCBhcmdjLCBjaGFy
KiogYXJndikKewogIEMgeDsKICB4LkluaXQoKTsKCiAgcmV0dXJuIDA7Cn0K


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

end of thread, other threads:[~2001-09-04  8:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-04  8:29 c++/4172: scope-qualified member reference, e.g. MyClass::foo, fails nathan
  -- strict thread matches above, loose matches on Subject: below --
2001-08-29 10:46 singer

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