This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/55628] New: Segmentation fault (segfault) on invalid template oneliner


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]