From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6603 invoked by alias); 9 Mar 2004 16:50:44 -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 6594 invoked by uid 48); 9 Mar 2004 16:50:42 -0000 Date: Tue, 09 Mar 2004 16:50:00 -0000 From: "a dot motzkau at web dot de" To: gcc-bugs@gcc.gnu.org Message-ID: <20040309165028.14503.a.motzkau@web.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/14503] New: Segfault when compiling template function X-Bugzilla-Reason: CC X-SW-Source: 2004-03/txt/msg01127.txt.bz2 List-Id: Hi there, Compiling the following file: # 1 "templ.cc" # 1 "" # 1 "" # 1 "templ.cc" template class T {}; class Main { public: struct S {}; template class U; }; template class Main::U { template void handle(T &x) {} }; With: g++ -c templ.cc I get: templ.cc:15: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Environment: Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.3 (Debian 20040306) The same also with g++ 3.2.3: Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.3/specs Configured with: ../src/configure -v --enable-languages=c,c++,f77,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-objc-gc i386-linux Thread model: posix gcc version 3.2.3 (Debian) Greetings, Alexander Motzkau -- Summary: Segfault when compiling template function Product: gcc Version: 3.3.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: a dot motzkau at web dot de CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i486-linux GCC host triplet: i486-linux GCC target triplet: i486-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14503