public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43507] New: name lookup fails in function template
@ 2010-03-24 10:12 yao_yin at 163 dot com
2010-03-24 10:17 ` [Bug c++/43507] " paolo dot carlini at oracle dot com
0 siblings, 1 reply; 2+ messages in thread
From: yao_yin at 163 dot com @ 2010-03-24 10:12 UTC (permalink / raw)
To: gcc-bugs
aa.cpp:
template<class T> void f(int x, T t)
{
f(t);
}
void f(int);
void h()
{
f(1,2);
}
when compiled with g++ aa.cpp -c, it shows:
aa.cpp: In function 'void f(int, T) [with T = int]':
aa.cpp:10: instantiated from here
aa.cpp:3: error: no matching function for call to 'f(int&)'
once the template instantiated from aa.cpp:10 the function void f(int f) should
has already been declared....
--
Summary: name lookup fails in function template
Product: gcc
Version: 4.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: yao_yin at 163 dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43507
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/43507] name lookup fails in function template
2010-03-24 10:12 [Bug c++/43507] New: name lookup fails in function template yao_yin at 163 dot com
@ 2010-03-24 10:17 ` paolo dot carlini at oracle dot com
0 siblings, 0 replies; 2+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-03-24 10:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from paolo dot carlini at oracle dot com 2010-03-24 10:16 -------
*** This bug has been marked as a duplicate of 43506 ***
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
Summary|name lookup fails in |name lookup fails in
|function template |function template
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43507
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-24 10:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-24 10:12 [Bug c++/43507] New: name lookup fails in function template yao_yin at 163 dot com
2010-03-24 10:17 ` [Bug c++/43507] " paolo dot carlini at oracle dot com
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).