c++/5476: Bug with template
m.duflot@ulg.ac.be
m.duflot@ulg.ac.be
Thu Jan 24 00:06:00 GMT 2002
>Number: 5476
>Category: c++
>Synopsis: Bug with template
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Thu Jan 24 00:06:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Marc Duflot
>Release: g++ 3.0.3
>Organization:
>Environment:
Suse Linux 7.3
>Description:
% g++ -c test.C
test.C:23: prototype for `void ML<Pb>::foo(typename GI<ML<Pb>::nsd>::IP&)' does not match any in class `ML<Pb>'
test.C:19: candidate is: void ML<Pb>::foo(typename GI<ML<Pb>::nsd>::IP&)
test.C:23: template definition of non-template `void ML<Pb>::foo(typename GI<ML<Pb>::nsd>::IP&)'
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="test.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.C"
dGVtcGxhdGUgPGludCBuc2Q+CmNsYXNzIEVsIHsKcHVibGljOgogICBlbnVtIHsgbnNkXz1uc2R9
Owp9OwoKdGVtcGxhdGUgPGludCBuc2Q+CmNsYXNzIEdJIHsKcHVibGljIDoKICAgY2xhc3MgSVAg
e2RvdWJsZSB4IFtuc2RdO307Cn07Cgp0ZW1wbGF0ZSA8Y2xhc3MgUGI+CmNsYXNzIE1MIHsKICAg
c3RhdGljIGNvbnN0IGludCBuc2QgPSBQYjo6bnNkXzsKICAgdHlwZWRlZiBHSTxuc2Q+IFRHSTsK
ICAgdHlwZWRlZiB0eXBlbmFtZSBUR0k6OklQIFRJUDsKIHB1YmxpYzoKICAgdm9pZCBmb28gKGNv
bnN0IHR5cGVuYW1lIEdJPG5zZD46OklQJiBpcCk7CiB9OwogCnRlbXBsYXRlIDxjbGFzcyBQYj4K
dm9pZCBNTDxQYj46OmZvbyAoY29uc3QgdHlwZW5hbWUgR0k8bnNkPjo6SVAmIGlwKSB7fQo=
More information about the Gcc-prs
mailing list