[Bug c++/20724] function overload resolution fails when any template is declared

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Mon Jul 25 14:26:00 GMT 2005


------- Additional Comments From bangerth at dealii dot org  2005-07-25 14:25 -------
As for the initial testcase (Andrew's testcase in comment #1),  
  
- gcc3.3 rejects it with and without the template declaration  
- icc rejects it with and without the template declaration  
- gcc3.4 (and later) rejects it with the template, but accepts it without  
  the template calling ::foo 
 
I believe that the later gcc compilers are in error. They should reject the 
code. 
 
Anyone has other opinions? 
 
W. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20724



More information about the Gcc-bugs mailing list