[Bug c++/11407] New: Function cannot be resolved

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Wed Jul 2 15:28:00 GMT 2003


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.



More information about the Gcc-bugs mailing list