public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: derekv@chartermi.net
To: gcc-gnats@gcc.gnu.org
Subject: c++/6693: template classes, nested classes defined elsewhere (2.95, FreeBSD 4.5, en)
Date: Fri, 17 May 2002 05:06:00 -0000	[thread overview]
Message-ID: <20020517120500.7126.qmail@sources.redhat.com> (raw)


>Number:         6693
>Category:       c++
>Synopsis:       template classes, nested classes defined elsewhere (2.95, FreeBSD 4.5, en)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Fri May 17 05:06:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     derekv@chartermi.net
>Release:        2.95.3 20010315 (release) [FreeBSD]
>Organization:
>Environment:

>Description:
this code seems legal.
it involves nested classes inside template classes
and inheritance.  It works when you define the nested
class inline.
>How-To-Repeat:
compile scratch.C (no includes in file)
>Fix:
define nested class inline.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="scratch.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="scratch.C"

Cgp0ZW1wbGF0ZSA8Y2xhc3MgX2R0PgpjbGFzcyBBCnsKICBjbGFzcyBYOwp9OwoKdGVtcGxhdGU8
Y2xhc3MgX2R0PgpjbGFzcyBBPF9kdD46OlgKewogIF9kdCBpOwpwdWJsaWM6CiAgWChfZHQgSSkg
e2kgPSBJO307CiAgdmlydHVhbCBpbnQgZ2V0ZGF0YSgpIHsgcmV0dXJuIGk7fTsKfTsKCnRlbXBs
YXRlIDxjbGFzcyBfZHQ+CmNsYXNzIEIgOiBwdWJsaWMgQTxfZHQ+CnsKICBjbGFzcyBYOwp9OwoK
dGVtcGxhdGUgPGNsYXNzIF9kdD4KY2xhc3MgQjxfZHQ+OjpYIDogcHVibGljIEE8X2R0Pjo6WAp7
CiAgcHVibGljOgogIFgoX2R0IEkpIDogQTxfZHQ+OjpYKEkpIHt9OwogIGludCBnZXRkYXRhKCkg
eyByZXR1cm4gQTxfZHQ+OjpYOjpnZXRkYXRhKCkgKyAzOyB9Owp9OwoKCmludCBtYWluKCkKewog
IGNsYXNzIEI8aW50Pjo6WCBiYXIoNyk7CiAgcmV0dXJuIDA7Cn0K


             reply	other threads:[~2002-05-17 12:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-17  5:06 derekv [this message]
2002-08-17 16:21 gdr

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=20020517120500.7126.qmail@sources.redhat.com \
    --to=derekv@chartermi.net \
    --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).