This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11407] New: Function cannot be resolved
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jul 2003 15:28:33 -0000
- Subject: [Bug c++/11407] New: Function cannot be resolved
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11407
Summary: Function cannot be resolved
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org
I'm surprised to find out that gcc doesn't grok this:
-----------------------------
template <int N> void f () {}
void g () {
&f<2>;
}
-----------------------------
icc accepts this, but with gcc I get
tmp/gg> ../build-gcc/gcc-install/bin/c++ -c abc.cc
abc.cc: In function `void g()':
abc.cc:4: error: statement cannot resolve address of overloaded function
f<2> is a fully specialized function name, so it is not overloaded. How
am I supposed to use this?
W.