[Bug c++/17775] [3.3/3.4/4.0 Regression] -frepo with function template in anonymous namespace fails to compile

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 1 16:04:00 GMT 2004


------- Additional Comments From bangerth at dealii dot org  2004-10-01 16:04 -------
I assume this is broken by the fix to PR 9393. However, reverting that 
patch is going to open a much larger problem than it would fix here, given 
that not many people use -frepo. 
 
For reference, here is the code from PR 6564: 
----------------------- 
namespace { 
  struct Foo {}; 
} 
 
template <typename Tp> 
void foo(Tp) {} 
 
int 
main() 
{ 
  foo(Foo()); 
} 
--------------------------- 
g/x> /home/bangerth/bin/gcc-4.0-pre/bin/c++ -frepo -Wall -c x.cc  
g/x> /home/bangerth/bin/gcc-4.0-pre/bin/c++ -frepo -Wall x.o -o x  
collect: recompiling x.cc 
collect: relinking 
collect: recompiling x.cc 
collect: relinking 
collect: recompiling x.cc 
collect: relinking 
collect: recompiling x.cc 
collect: relinking 
collect: recompiling x.cc 
collect: relinking 
collect: recompiling x.cc 
.... 
 
W. 

-- 


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



More information about the Gcc-bugs mailing list