This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/5534: simple case that fails to link when using -frepo
- From: bgreen at nas dot nasa dot gov
- To: gcc-gnats at gcc dot gnu dot org
- Date: 29 Jan 2002 21:58:53 -0000
- Subject: c++/5534: simple case that fails to link when using -frepo
- Reply-to: bgreen at nas dot nasa dot gov
>Number: 5534
>Category: c++
>Synopsis: simple case that fails to link when using -frepo
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 29 14:06:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Bryan Green
>Release: 3.0.3
>Organization:
>Environment:
Configured with: /home/bgreen/gcc/gcc-3.0.3/configure --prefix=/usr/local/gcc-3.0.3 --enable-threads=posix
Thread model: posix
gcc version 3.0.3
Linux 2.4.2-2smp-081701 #2 SMP i686 unknown
>Description:
The code submitted, when compiled with -frepo option,
causes numerous iterations of:
collect: recompiling frepo.C
collect: relinking
before failing with an undefined symbol.
The source to the problem is in the use of the unnamed
namespace for the structure definition.
The example code uses an stl list, but changing it to
a vector or deque shows equivalent results.
>How-To-Repeat:
#include <list>
namespace {
struct data {
int v;
};
}
int main(int,char **)
{
std::list<data> llist;
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: