This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17775] [3.3/3.4/4.0 Regression] -frepo with function template in anonymous namespace fails to compile
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Oct 2004 16:04:18 -0000
- Subject: [Bug c++/17775] [3.3/3.4/4.0 Regression] -frepo with function template in anonymous namespace fails to compile
- References: <20041001140831.17775.rainy6144@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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