This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]