From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3998 invoked by alias); 28 Jun 2004 02:42:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 3984 invoked by uid 48); 28 Jun 2004 02:42:52 -0000 Date: Mon, 28 Jun 2004 02:46:00 -0000 From: "mckelvey at maskull dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20040628024250.16240.mckelvey@maskull.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/16240] New: Seg Fault in collect2 X-Bugzilla-Reason: CC X-SW-Source: 2004-06/txt/msg03535.txt.bz2 List-Id: This code links if I add "inline" to the four Delete(...) functions in StringScalarDeleteValue.h. Without that I get a seg fault. /usr/local/bin/g++ -g -fno-elide-constructors -pedantic-errors -Werror -ansi -fno-common -fstrict-aliasing -Wall -W -Wold-style-cast -Wsign-promo -Wpointer-arith -Wconversion -Wundef -Wwrite-strings -Winvalid-pch -Woverloaded-virtual -Wcast-qual -Winline -Wextra -MMD -fimplicit-templates -Wl,-warn-common -L.. -o test025.exe test025.o -lPatternDriver -lintl ../libPatternDriver.a(StringScalarDeleteValue.o)(.text+0x1cc):/usr/home/mckelvey/PD/StringScalarDeleteValue.h:223: multiple definition of `g++: Internal error: Segmentation fault (program collect2) Please submit a full bug report. See for instructions. gmake: *** [test025.exe] Error 1 alpha1:PD>g++ -v Reading specs from /usr/local/lib/gcc/alphaev56-unknown-linux-gnu/3.5.0/specs Configured with: ../gcc/configure --verbose --enable-languages=c++ Thread model: posix gcc version 3.5.0 20040207 (experimental) alpha1:PD>uname -a Linux alpha1 2.4.9-40 #1 Mon Sep 23 08:14:02 EDT 2002 alpha unknown alpha1:PD>alias CONFIGURECVS alias CONFIGURECVS='../gcc/configure --verbose --enable-languages=c++ >clog 2>&1' alpha1:PD>alias BUILD alias BUILD='nice gmake CFLAGS='\''-O'\'' BOOT_CFLAGS='\''-O'\'' LIBCFLAGS='\''-g -O'\'' LIBCXXFLAGS='\''-g -O -fno-implicit-templates'\'' bootstrap >log 2>&1' I attach the .ii file; let me know if you need anything else. -- Summary: Seg Fault in collect2 Product: gcc Version: 3.5.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mckelvey at maskull dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: alphaev56-unknown-linux-gnu GCC host triplet: alphaev56-unknown-linux-gnu GCC target triplet: alphaev56-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16240