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++/17775] [3.3/3.4/4.0 Regression] -frepo with function template in anonymous namespace fails to compile


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


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