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++/20724] function overload resolution fails when any template is declared


------- 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


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