This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/6693: template classes, nested classes defined elsewhere (2.95, FreeBSD 4.5, en)



>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]