Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 11407
Product:  
Component:  
Status: RESOLVED
Resolution: FIXED
Assigned To: Jason Merrill <jason@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Wolfgang Bangerth <bangerth@gmail.com>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 11407 depends on: Show dependency tree
Show dependency graph
Bug 11407 blocks: 37177

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: 2007-09-23 18:27 Opened: 2003-07-02 15:28
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.

------- Comment #1 From Giovanni Bajo 2003-07-02 16:23 -------
This is basically DR115, which is not resolved yet.

------- Comment #2 From Wolfgang Bangerth 2003-07-04 22:28 -------
Confirm to suspend...

------- Comment #3 From Wolfgang Bangerth 2003-07-04 22:28 -------
Suspend until DR 115 is ready.

------- Comment #4 From Stephan T. Lavavej 2004-04-02 08:04 -------
Core DR 115 now has WP status:
http://std.dkuug.dk/jtc1/sc22/wg21/docs/cwg_defects.html#115

------- Comment #5 From Andrew Pinski 2004-04-02 12:33 -------
Ok, moving to NEW then.

------- Comment #6 From Andrew Pinski 2004-05-28 18:49 -------
*** Bug 15711 has been marked as a duplicate of this bug. ***

------- Comment #7 From Andrew Pinski 2006-05-29 00:12 -------
*** Bug 27788 has been marked as a duplicate of this bug. ***

------- Comment #8 From Andrew Pinski 2006-09-22 23:33 -------
*** Bug 29187 has been marked as a duplicate of this bug. ***

------- Comment #9 From Andrew Pinski 2006-10-09 17:57 -------
*** Bug 28793 has been marked as a duplicate of this bug. ***

------- Comment #10 From Andrew Pinski 2007-08-06 13:57 -------
*** Bug 33005 has been marked as a duplicate of this bug. ***

------- Comment #11 From Andrew Pinski 2007-12-06 21:46 -------
*** Bug 34365 has been marked as a duplicate of this bug. ***

------- Comment #12 From Andrew Pinski 2008-02-28 16:47 -------
*** Bug 35398 has been marked as a duplicate of this bug. ***

------- Comment #13 From Andrew Pinski 2008-11-28 17:02 -------
Related to PR 10690.

------- Comment #14 From Andrew Pinski 2008-12-27 22:05 -------
*** Bug 36805 has been marked as a duplicate of this bug. ***

------- Comment #15 From Andrew Pinski 2009-01-30 00:21 -------
*** Bug 39018 has been marked as a duplicate of this bug. ***

------- Comment #16 From Jason Merrill 2009-11-04 16:08 -------
Fixed for 4.5 by the patch for PR 37177.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug