public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9486: [3.4 regression] can't find a matching member template function
@ 2003-01-28 19:50 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-01-28 19:50 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, levon, nobody
Old Synopsis: boost_no_mem_tem_keyword fails with no matching function
New Synopsis: [3.4 regression] can't find a matching member template function
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Tue Jan 28 19:50:14 2003
State-Changed-Why:
Confirmed. Here's a cut-down:
----------------------------
template <class T> struct X {
template <class U> void foo(U);
};
template <class T>
void bar() {
X<double> x;
x.template foo<T>(0);
}
template void bar<int>();
-------------------------
g/a> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c b.c
b.c: In function `void bar() [with T = int]':
b.c:10: instantiated from here
b.c:8: error: no matching function for call to `X<double>::foo(int)'
This used to work until 3.3.
If one removes the argument of foo but leaves it as a
template, one gets an ICE instead. I'll report this in a
separate PR.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9486
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/9486: [3.4 regression] can't find a matching member template function
@ 2003-04-16 1:35 reichelt
0 siblings, 0 replies; 2+ messages in thread
From: reichelt @ 2003-04-16 1:35 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, levon, nobody
Synopsis: [3.4 regression] can't find a matching member template function
State-Changed-From-To: analyzed->closed
State-Changed-By: reichelt
State-Changed-When: Wed Apr 16 01:35:25 2003
State-Changed-Why:
Fixed (as well as PR 9487 which deals with the ICE).
(Testcase in preparation.)
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9486
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-16 1:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-28 19:50 c++/9486: [3.4 regression] can't find a matching member template function bangerth
2003-04-16 1:35 reichelt
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).