From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25145 invoked by alias); 29 Jan 2002 22:06:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 25117 invoked by uid 71); 29 Jan 2002 22:06:01 -0000 Resent-Date: 29 Jan 2002 22:06:01 -0000 Resent-Message-ID: <20020129220601.25116.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, bgreen@nas.nasa.gov Received:(qmail 20226 invoked by uid 61); 29 Jan 2002 21:58:53 -0000 Message-Id:<20020129215853.20222.qmail@sources.redhat.com> Date: Tue, 29 Jan 2002 14:06:00 -0000 From: bgreen@nas.nasa.gov Reply-To: bgreen@nas.nasa.gov To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/5534: simple case that fails to link when using -frepo X-SW-Source: 2002-01/txt/msg01042.txt.bz2 List-Id: >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 namespace { struct data { int v; }; } int main(int,char **) { std::list llist; return 0; } >Fix: >Release-Note: >Audit-Trail: >Unformatted: