Bug 411741 - g++ link errror with -frepo
g++ link errror with -frepo
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
8
x86_64 Linux
low Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-05 05:00 EST by Serge Pavlovsky
Modified: 2007-12-06 07:56 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-12-06 07:56:53 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
GNU Compiler Collection 34178 None None None Never

  None (edit)
Description Serge Pavlovsky 2007-12-05 05:00:21 EST
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
Comment 1 Jakub Jelinek 2007-12-06 07:56:53 EST
This is already tracked upstream.

Note You need to log in before you can comment on or make changes to this bug.