This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55628] New: Segmentation fault (segfault) on invalid template oneliner
- From: "h-gccbg at scnr dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 09 Dec 2012 15:53:48 +0000
- Subject: [Bug c++/55628] New: Segmentation fault (segfault) on invalid template oneliner
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55628
Bug #: 55628
Summary: Segmentation fault (segfault) on invalid template
oneliner
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: h-gccbg@scnr.net
Created attachment 28909
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28909
Preprocessed source
template<class T> template<class template C<T> >
crashes "gcc version 4.7.2 (Debian 4.7.2-4)":
[~]> cat > crash.cpp
template<class T> template<class template C<T> >
[exit code 0]
[~]> g++ -Wall -Werror crash.cpp
crash.cpp:1:46: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccEnSjYq.out file, please attach this to
your bugreport.
[exit code 1]
Same with "gcc version 4.7.2 (GCC)" under Arch Linux.