Bug 411741 - g++ link errror with -frepo
Summary: g++ link errror with -frepo
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 8
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-05 10:00 UTC by Serge Pavlovsky
Modified: 2007-12-06 12:56 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-12-06 12:56:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 34178 0 None None None 2019-01-25 18:45:40 UTC

Description Serge Pavlovsky 2007-12-05 10:00:21 UTC
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 12:56:53 UTC
This is already tracked upstream.


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