From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20180 invoked by alias); 30 Aug 2005 23:48:08 -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 20171 invoked by uid 48); 30 Aug 2005 23:48:04 -0000 Date: Tue, 30 Aug 2005 23:55:00 -0000 From: "xiaoyi_wu at yahoo dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20050830234801.23645.xiaoyi_wu@yahoo.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/23645] New: internal compiler error X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg03515.txt.bz2 List-Id: $ uname -a Linux rathercry.corp.yahoo.com 2.6.9-11.EL #1 Fri May 20 18:17:57 EDT 2005 i686 i686 i386 GNU/Linux $ g++ -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc-4.0.1/configure --prefix=/exp/opt/gcc401 --enable-languages=c++ Thread model: posix gcc version 4.0.1 $ cat main.cc namespace z { class A { public: A(int); ~A(); }; #ifdef _IMPL A::A(int) {} A::~A() {} #endif } using namespace z; int main() { A a(0), b(0); } $ g++ -Wall -O3 main.cc main.cc: In function ‘int main()’: main.cc:15: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. /* g++ -Wall -O3 -D_IMPL main.cc compiles fine, and g++ -Wall main.cc compiles fine, but linking complains about undefined A(int) and ~A(), as expected. */ -- Summary: internal compiler error Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: xiaoyi_wu at yahoo dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: Linux GCC host triplet: Linux GCC target triplet: Linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23645