From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4685 invoked by alias); 2 Jul 2003 15:28:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 4678 invoked by uid 48); 2 Jul 2003 15:28:33 -0000 Date: Wed, 02 Jul 2003 15:28:00 -0000 From: "bangerth at dealii dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20030702152832.11407.bangerth@dealii.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/11407] New: Function cannot be resolved X-Bugzilla-Reason: CC X-SW-Source: 2003-07/txt/msg00181.txt.bz2 List-Id: 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 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.