public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11407] New: Function cannot be resolved
@ 2003-07-02 15:28 bangerth at dealii dot org
  2003-07-02 16:23 ` [Bug c++/11407] " giovannibajo at libero dot it
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bangerth at dealii dot org @ 2003-07-02 15:28 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-05-28 18:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-02 15:28 [Bug c++/11407] New: Function cannot be resolved bangerth at dealii dot org
2003-07-02 16:23 ` [Bug c++/11407] " giovannibajo at libero dot it
2003-07-04 22:28 ` [Bug c++/11407] [DR 115] " bangerth at dealii dot org
2003-07-04 22:28 ` [Bug c++/11407] " bangerth at dealii dot org
2003-08-04  0:31 ` [Bug c++/11407] [DR 115] " pinskia at physics dot uc dot edu
2003-12-06  8:10 ` pinskia at gcc dot gnu dot org
2004-04-02  8:05 ` stl at caltech dot edu
2004-04-02 12:33 ` pinskia at gcc dot gnu dot org
2004-05-29  2:52 ` 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).