From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6895 invoked by alias); 15 Apr 2005 06:32:31 -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 6831 invoked by uid 48); 15 Apr 2005 06:32:26 -0000 Date: Fri, 15 Apr 2005 06:32:00 -0000 From: "sjanssen at cse dot unl dot edu" To: gcc-bugs@gcc.gnu.org Message-ID: <20050415063222.21040.sjanssen@cse.unl.edu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/21040] New: Segmentation fault on template/typedef typo X-Bugzilla-Reason: CC X-SW-Source: 2005-04/txt/msg02021.txt.bz2 List-Id: g++ reports: "gpp_bug.cpp:10: internal compiler error: Segmentation fault", on both Gentoo Linux (gcc 3.3.5) and Solaris (gcc 3.3.2). Full output of "g++ gpp_bug.cpp": gpp_bug.cpp: In function `void func()': gpp_bug.cpp:10: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /tmp/ccIkMcGH.out file, please attach this to your bugreport. Output of "g++ -v" on the Linux system: Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --disable-multilib --enable-java-awt=gtk --enable-languages=c,c++,f77,java Thread model: posix gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1) Offending source code: //BEGIN SOURCE CODE: template struct bar { typedef T INNER_TYPE_DEF; }; template void func(){ typedef typename bar::INNER_TYPE_DEF LOCAL_TYPE_DEF; LOCAL_TYPE_DEF b; } int main(){ } //END SOURCE CODE Obviously "LOCAL_TYPE_DEF" is nonsensical, I stumbled on this segfault as a result of a typo. -- Summary: Segmentation fault on template/typedef typo Product: gcc Version: 3.3.5 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sjanssen at cse dot unl dot edu CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21040