public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33005] New: Cannot specialize template function with address operator
@ 2007-08-06 13:55 rodolfo at rodsoft dot org
2007-08-06 13:58 ` [Bug c++/33005] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: rodolfo at rodsoft dot org @ 2007-08-06 13:55 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1008 bytes --]
The code below doesn't compile under gcc-4.2.1 on a i686-pc-linux-gnu
template <class T> void foo(T);
void bar()
{
&foo<int>;
}
The compiler returns the following error message:
teste.cpp: In function void bar():
teste.cpp:4: error: statement cannot resolve address of overloaded function
As we're specifying a complete template function specialization, its address
should be returned correctly, and there's no overloaded function in scope,
there's nothing to resolve.
--
Summary: Cannot specialize template function with address
operator
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rodolfo at rodsoft dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33005
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/33005] Cannot specialize template function with address operator
2007-08-06 13:55 [Bug c++/33005] New: Cannot specialize template function with address operator rodolfo at rodsoft dot org
@ 2007-08-06 13:58 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-06 13:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-08-06 13:57 -------
*** This bug has been marked as a duplicate of 11407 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33005
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-06 13:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-06 13:55 [Bug c++/33005] New: Cannot specialize template function with address operator rodolfo at rodsoft dot org
2007-08-06 13:58 ` [Bug c++/33005] " pinskia at gcc dot gnu dot org
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).