c++/7314: templated qualified name lookup fails
nathan@acm.org
nathan@acm.org
Mon Jul 15 08:20:00 GMT 2002
>Number: 7314
>Category: c++
>Synopsis: templated qualified name lookup fails
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Mon Jul 15 07:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: nathan@acm.org
>Release: 2.95, 3.1
>Organization:
>Environment:
>Description:
The attached program fails to compile with,
nathan@manao:208>g++ -c foo.cc
foo.cc: In member function `void Outer::Arg::Foo(T*) [with T = int]':
foo.cc:14: instantiated from here
foo.cc:6: no method `Outer::Arg::NotOk<int>'
which is wrong
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="foo.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="foo.cc"
c3RydWN0IE91dGVyIHsKICBzdHJ1Y3QgQXJnIHsKICAgIHRlbXBsYXRlIDx0eXBlbmFtZSBUPiBp
bmxpbmUgdm9pZCBGb28gKFQgKikgdGhyb3cgKCkKICAgIHsKICAgICAgT2s8VD4gKCk7CiAgICAg
IEFyZzo6Tm90T2s8VD4gKCk7CiAgICB9CiAgICB0ZW1wbGF0ZTx0eXBlbmFtZSBUPiB2b2lkICpP
ayAoKTsKICAgIHRlbXBsYXRlPHR5cGVuYW1lIFQ+IHZvaWQgKk5vdE9rICgpOwogIH07Cn07CnZv
aWQgRm9vIChPdXRlcjo6QXJnICZhLCBpbnQgKmkpCnsKICBhLkZvbyAoaSk7Cn0K
More information about the Gcc-bugs
mailing list