c++/5534: simple case that fails to link when using -frepo
bgreen@nas.nasa.gov
bgreen@nas.nasa.gov
Tue Jan 29 15:24:00 GMT 2002
>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:
More information about the Gcc-bugs
mailing list