Description of problem: link error with -frepo Version-Release number of selected component (if applicable): 4.1.2 20070925 (Red Hat 4.1.2-33) How reproducible: [11:57:09 pal@localhost ~/tmp/1]$ cat a.cpp template < class T > class A { public: static const T a [ 1 ]; }; template < class T > const T A < T > :: a [ 1 ] = { 'a' }; int main ( ) { char a = A < char > :: a [ 0 ]; } [11:58:20 pal@localhost ~/tmp/1]$ g++ -o a a.cpp [11:58:27 pal@localhost ~/tmp/1]$ g++ -c a.cpp -frepo [11:58:33 pal@localhost ~/tmp/1]$ LC_ALL=C g++ -o a a.o -frepo a.o: In function `main': a.cpp:(.text+0x7): undefined reference to `A<char>::a' collect2: ld returned 1 exit status Actual results: no error without -frepo, error with - frepo Expected results: no errors in both cases
This is already tracked upstream.