This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/5534: simple case that fails to link when using -frepo



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]