From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27555 invoked by alias); 13 May 2002 00:16:04 -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 27520 invoked by uid 71); 13 May 2002 00:16:02 -0000 Resent-Date: 13 May 2002 00:16:02 -0000 Resent-Message-ID: <20020513001602.27515.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, Sylvain.Pion@sophia.inria.fr Resent-Reply-To: gcc-gnats@gcc.gnu.org, Sylvain.Pion@sophia.inria.fr Received:(qmail 27474 invoked by uid 61); 13 May 2002 00:15:40 -0000 Message-Id:<20020513001540.27473.qmail@sources.redhat.com> Date: Sun, 12 May 2002 17:16:00 -0000 From: Sylvain.Pion@sophia.inria.fr Reply-To: Sylvain.Pion@sophia.inria.fr To: gcc-gnats@gcc.gnu.org Cc: Sylvain.Pion@sophia.inria.fr X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify:Sylvain.Pion@sophia.inria.fr Subject: libstdc++/6641: -D__USE_MALLOC doesn't link X-SW-Source: 2002-05/txt/msg00337.txt.bz2 List-Id: >Number: 6641 >Category: libstdc++ >Synopsis: -D__USE_MALLOC doesn't link >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun May 12 17:16:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Sylvain Pion >Release: 3.1 and 3.2 >Organization: >Environment: Reading specs from /u/zosma/0/prisme/spion/gcc/Linux_3.1/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs Configured with: /u/zosma/0/prisme/spion/gcc/gcc-3.1-branch/configure --disable-shared --enable-languages=c++ --prefix=/u/zosma/0/prisme/spion/gcc/Linux_3.1 --with-gnu-as --with-gnu-ld --with-as=/u/zosma/0/prisme/spion/gcc/Binutils/Linux/bin/as --with-ld=/u/zosma/0/prisme/spion/gcc/Binutils/Linux/bin/ld Thread model: single gcc version 3.1 20020509 (prerelease) >Description: Compiling the attached program with -D__USE_MALLOC produces the following error at link. It's a regression from 3.0. /tmp/ccRjeIw2.o: In function `std::__simple_alloc >::allocate(unsigned)': /tmp/ccRjeIw2.o(.gnu.linkonce.t._ZNSt14__simple_allocIiSt23__malloc_alloc_templateILi0EEE8allocateEj+0x16): undefined reference to `std::__malloc_alloc_template<(int)0>::allocate(unsigned)' /tmp/ccRjeIw2.o: In function `std::__simple_alloc >::deallocate(int*, unsigned)': /tmp/ccRjeIw2.o(.gnu.linkonce.t._ZNSt14__simple_allocIiSt23__malloc_alloc_templateILi0EEE10deallocateEPij+0x1d): undefined reference to `std::__malloc_alloc_template<(int)0>::deallocate(void*, unsigned)' collect2: ld returned 1 exit status >How-To-Repeat: // compile and link the following program with // -D__USE_MALLOC #include #include int main() { std::vector V(1); return 0; } >Fix: >Release-Note: >Audit-Trail: >Unformatted: