Bug 176 - -frepo not working
Summary: -frepo not working
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 2.95.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: wrong-code
Depends on:
Blocks:
 
Reported: 2000-04-20 00:06 UTC by martin
Modified: 2003-07-25 17:33 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description martin 2000-04-20 00:06:00 UTC
 Original-Message-ID: <14590.8851.229295.681640@data.ecora.com>
 Date: Wed, 19 Apr 2000 17:18:11 -0400 (EDT)

 Here is one.  Please notice that subsequent invocations of "c++ t.o"
 generate different error messages.

 Tudor

 RedHat Linux 6.2,
 Reading specs from /home/tudor/opt/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
 gcc version 2.95.2 19991024 (release)

 stack.cc:

 #include <stack>
 int main() { stack<int> x; }

 [tudor@data]:~ $ c++ -frepo -c t.cc
 [tudor@data]:~ $ c++ t.o

 collect: recompiling t.cc
 collect: relinking
 t.o: In function `deque<int, allocator<int>, 0>::~deque(void)':
 t.o(.text+0x51): undefined reference to `_Deque_base<int, allocator<int>, 0>::~_Deque_base(void)'
 t.o: In function `_Deque_base<int, allocator<int>, 0>::_Deque_base(allocator<int> const &, unsigned int)':
 t.o(.text+0xa7): undefined reference to `_Deque_base<int, allocator<int>, 0>::_M_initialize_map(unsigned int)'
 t.o: In function `deque<int, allocator<int>, 0>::deque(allocator<int> const &)':
 t.o(.text+0xf7): undefined reference to `_Deque_base<int, allocator<int>, 0>::~_Deque_base(void)'
 collect2: ld returned 1 exit status

 [tudor@data]:~ $ c++ t.o

 collect: recompiling t.cc
 collect: relinking
 t.o: In function `_Deque_base<int, allocator<int>, 0>::~_Deque_base(void)':
 t.o(.text+0x83): undefined reference to `_Deque_base<int, allocator<int>, 0>::_M_destroy_nodes(int **, int **)'
 t.o: In function `_Deque_base<int, allocator<int>, 0>::_M_initialize_map(unsigned int)':
 t.o(.text+0x169): undefined reference to `_Deque_base<int, allocator<int>, 0>::_M_create_nodes(int **, int **)'
 collect2: ld returned 1 exit status

 [tudor@data]:~ $ c++ t.o

 collect: recompiling t.cc
 collect: relinking
 t.o: In function `deque<int, allocator<int>, 0>::~deque(void)':
 t.o(.gnu.linkonce.t._._t5deque3ZiZt9allocator1ZiUi0+0x51): undefined reference to `_Deque_base<int, allocator<int>, 0>::~_Deque_base(void)'
 t.o: In function `deque<int, allocator<int>, 0>::deque(allocator<int> const &)':
 t.o(.deque<int, allocator<int>, 0>::gnu.linkonce.t.(allocator<int> const &)+0x37): undefined reference to `_Deque_base<int, allocator<int>, 0>::~_Deque_base(void)'
 t.o: In function `_Deque_base<int, allocator<int>, 0>::_Deque_base(allocator<int> const &, unsigned int)':
 t.o(._Deque_base<int, allocator<int>, 0>::gnu.linkonce.t.(allocator<int> const &, unsigned int)+0x43): undefined reference to `_Deque_base<int, allocator<int>, 0>::_M_initialize_map(unsigned int)'
 collect2: ld returned 1 exit status

 [tudor@data]:~ $ c++ t.o

 collect: recompiling t.cc
 collect: relinking
 t.o: In function `_Deque_base<int, allocator<int>, 0>::~_Deque_base(void)':
 t.o(.text+0x19b): undefined reference to `_Deque_base<int, allocator<int>, 0>::_M_destroy_nodes(int **, int **)'
 t.o: In function `_Deque_base<int, allocator<int>, 0>::_M_initialize_map(unsigned int)':
 t.o(.text+0x285): undefined reference to `_Deque_base<int, allocator<int>, 0>::_M_create_nodes(int **, int **)'
 collect2: ld returned 1 exit status

 [tudor@data]:~ $

Release:
2.95.2
Comment 1 James Dennett 2001-02-18 11:44:13 UTC
State-Changed-From-To: analyzed->closed
State-Changed-Why: Compiles and links just fine with
    gcc version 3.0 20010218 (prerelease)
    when updated to use std::stack.
Comment 2 James Dennett 2001-02-18 19:44:13 UTC
From: jdennett@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, martin@loewis.home.cs.tu-berlin.de,
  nobody@gcc.gnu.org, tudor.hulubei@ecora.com
Cc:  
Subject: Re: c++/176
Date: 18 Feb 2001 19:44:13 -0000

 Synopsis: -frepo not working
 
 State-Changed-From-To: analyzed->closed
 State-Changed-By: jdennett
 State-Changed-When: Sun Feb 18 11:44:13 2001
 State-Changed-Why:
     Compiles and links just fine with
     gcc version 3.0 20010218 (prerelease)
     when updated to use std::stack.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=176&database=gcc