This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/4882: fails to lookup a template specialization dependent of an outer template
- From: duret_g at epita dot fr
- To: gcc-gnats at gcc dot gnu dot org
- Date: 15 Nov 2001 16:14:09 -0000
- Subject: c++/4882: fails to lookup a template specialization dependent of an outer template
- Reply-to: duret_g at epita dot fr
[Get raw message]
>Number: 4882
>Category: c++
>Synopsis: fails to lookup a template specialization dependent of an outer template
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Thu Nov 15 08:16:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: duret_g@epita.fr
>Release: 3.0.2
>Organization:
>Environment:
Debian GNU/Linux i386
>Description:
[I'm sorry if this falls into the "two stage lookup in template" category. The bugs.html page does not explain
what that means.]
GCC fails to compile the attached file
as follow:
~/tmp % gcc-3.0 c2.cc
c2.cc: In function `int main()':
c2.cc:20: `ret' is not a member of type `C<1, 2>::output<D<8, 1> >'
c2.cc:20: parse error before `;' token
The on-line C/C++ Comeau compiles it just fine.
>How-To-Repeat:
Compile the attached file.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="c2.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="c2.cc"
dGVtcGxhdGU8IHVuc2lnbmVkIGIsIHVuc2lnbmVkIGM+IGNsYXNzIEQge307Cgp0ZW1wbGF0ZTwg
dW5zaWduZWQgaWMsIHVuc2lnbmVkIG9jID4Kc3RydWN0IEMKewogIHRlbXBsYXRlIDxjbGFzcyBU
PgogIHN0cnVjdCBvdXRwdXQgewogIH07CgogIHRlbXBsYXRlIDx1bnNpZ25lZCBRPgogIHN0cnVj
dCBvdXRwdXQ8RDxRLCBpYz4gPgogIHsKICAgIHR5cGVkZWYgRDxRLCBvYz4gcmV0OwogIH07Cgp9
OwoKaW50IG1haW4gKCkKewogIEM8MSwyPjo6b3V0cHV0PEQ8OCwxPiA+OjpyZXQgZzsKfQo=