public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: singer@stanford.edu
To: gcc-gnats@gcc.gnu.org
Subject: c++/4172: scope-qualified member reference, e.g. MyClass::foo, fails
Date: Wed, 29 Aug 2001 10:46:00 -0000	[thread overview]
Message-ID: <20010829173815.31151.qmail@sourceware.cygnus.com> (raw)

>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
Z251IGNvbXBpbGVyLCB2ZXJzaW9uIDIuOTUuMy4KVGhlIGNsYXNzIEMsIGRlZmluZWQgYmVsb3cs
IGluaGVyaXRzIGEgbWVtYmVyICJmb28iIGZyb20gY2xhc3MgQi4KQnV0IHRoZSByZWZlcmVuY2Ug
Qzo6Zm9vIGlzIHRyZWF0ZWQgaW1wcm9wZXJseSBieSB0aGUgY29tcGlsZXIuCgogKi8KCmNsYXNz
IEEKewpwdWJsaWM6CiAgdmlydHVhbCB2b2lkIGlnbm9yZW1lKCl7fQp9OwoKCgpjbGFzcyB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aGlzLT5mb28pOwogICAgcHJpbnRmKCJ0aGlzLT5C
Ojpmb28gPSAlZFxuIiwgdGhpcy0+Qjo6Zm9vKTsKICAgIHByaW50ZigidGhpcy0+Qzo6Zm9vID0g
JWRcbiIsIHRoaXMtPkM6OmZvbyk7CgogIH0KfTsKCgoKCmludCBtYWluKGludCBhcmdjLCBjaGFy
KiogYXJndikKewogIEMgeDsKICB4LkluaXQoKTsKCiAgcmV0dXJuIDA7Cn0K


             reply	other threads:[~2001-08-29 10:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-29 10:46 singer [this message]
2001-09-04  8:29 nathan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010829173815.31151.qmail@sourceware.cygnus.com \
    --to=singer@stanford.edu \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).