public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4166: recursive member template call fails to compile
@ 2001-08-31 11:11 lerdsuwa
0 siblings, 0 replies; 4+ messages in thread
From: lerdsuwa @ 2001-08-31 11:11 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, gisli, nobody
Synopsis: recursive member template call fails to compile
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Fri Aug 31 11:11:21 2001
State-Changed-Why:
Confirm as a bug.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4166&database=gcc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/4166: recursive member template call fails to compile
@ 2002-10-31 7:20 lerdsuwa
0 siblings, 0 replies; 4+ messages in thread
From: lerdsuwa @ 2002-10-31 7:20 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, gisli, lerdsuwa
Synopsis: recursive member template call fails to compile
State-Changed-From-To: analyzed->closed
State-Changed-By: lerdsuwa
State-Changed-When: Thu Oct 31 07:20:26 2002
State-Changed-Why:
Fixed in the main trunk.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4166
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/4166: recursive member template call fails to compile
@ 2002-10-26 2:29 lerdsuwa
0 siblings, 0 replies; 4+ messages in thread
From: lerdsuwa @ 2002-10-26 2:29 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, gisli, lerdsuwa, nobody
Synopsis: recursive member template call fails to compile
Responsible-Changed-From-To: unassigned->lerdsuwa
Responsible-Changed-By: lerdsuwa
Responsible-Changed-When: Sat Oct 26 02:29:02 2002
Responsible-Changed-Why:
Under investigation.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4166
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++/4166: recursive member template call fails to compile
@ 2001-08-29 3:56 gisli
0 siblings, 0 replies; 4+ messages in thread
From: gisli @ 2001-08-29 3:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 4166
>Category: c++
>Synopsis: recursive member template call fails to compile
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Wed Aug 29 03:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Gisli Ottarsson
>Release: unknown-1.0
>Organization:
>Environment:
~ > gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)
>Description:
First, my apologies if this report pertains to the known limitation
"Two stage lookup in templates is not implemented". I am not smart
enough to know whether this is a two stage template lookup problem.
Perhaps your website should give an example of such a problem.
When I compile the attached, self contained program, which features
a member template for which an instantiation will call itself recursively,
compilation fails with the following error message:
gisli.cxx: In method `T *A::exhaustive_search (int) const [with T =
B]':
gisli.cxx:72: instantiated from here
gisli.cxx:56: no matching function for call to `A::exhaustive_search
(int &)'
For what it is worth, the program compiles and runs with recent SGI,
IBM and HP C++ compilers.
>How-To-Repeat:
g++ gisli.cxx
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="gisli.cxx"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gisli.cxx"
I2luY2x1ZGUgPGlvc3RyZWFtPiAKI2luY2x1ZGUgPGxpc3Q+IAogCi8vIAovLyAgU2ltcGxlIGJh
c2UgZm9yIGEgdHJlZSBub2RlIHdpdGggYW4gaW50ZWdlciBpZCAKLy8gCmNsYXNzIEEgCnsgCiAg
IGludCBfaWQ7IAogICBBKiBfcGFyZW50OyAKICAgc3RkOjpsaXN0PEEqPiBraWRzOyAKIApwdWJs
aWM6IAogCiAgIEEoQSogcGFyZW50LCBpbnQgaSkgOiBfcGFyZW50KHBhcmVudCksIF9pZChpKXsg
aWYgKHBhcmVudCkgcGFyZW50LT5raWRzLnB1c2hfYmFj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aSE9a2lkcy5lbmQoKTsgKytpKSAK
ICAgeyAKICAgICAgVCogb2JqID0gKCppKS0+ZXhoYXVzdGl2ZV9zZWFyY2g8VD4oc291Z2h0X2lk
KTsgCiAgICAgIGlmKG9iaikgcmV0dXJuIG9iajsgCiAgIH0gCiAgIHJldHVybiAwOyAKfSAKIApp
bnQgbWFpbigpIAp7IAogICBBIHJvb3QoMCwwKTsgCiAKICAgQiBiMSgmcm9vdCwxKTsgCiAgIEIg
YjIoJmIxLDIpOyAKIAogICBDIGMxKCZyb290LDEpOyAKICAgQyBjMigmYjIsMik7IAogCiAgIEIq
IG9iaiA9IHJvb3QuZXhoYXVzdGl2ZV9zZWFyY2g8Qj4oMik7ICAgLy8gc2hvdWxkIGZpbmQgYjI7
CiAKICAgc3RkOjpjb3V0IDw8IG9iai0+aWQoKSA8PCBzdGQ6OmVuZGw7IAp9IAogCgoKCg==
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-10-31 15:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-31 11:11 c++/4166: recursive member template call fails to compile lerdsuwa
-- strict thread matches above, loose matches on Subject: below --
2002-10-31 7:20 lerdsuwa
2002-10-26 2:29 lerdsuwa
2001-08-29 3:56 gisli
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).