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++/26558] New: segfault on syntax error


[forwarded from http://bugs.debian.org/349087]

g++ (GCC) 4.0.3 20060212 (prerelease) (Debian 4.0.2-9)

falk@gluck:~% cat main.cpp 
template <typename T> class C {
        template <int NO> int fun() { return NO;}
        template <int NO> int fun2() {
                return 0 << fun<NO>::; //bad code of course here :)
        }
};
falk@gluck:~% g++ -c main.cpp 
main.cpp: In member function 'int C<T>::fun2()':
main.cpp:4: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Does not occur on alpha-linux-gnu, or with 3.3.6.


-- 
           Summary: segfault on syntax error
           Product: gcc
           Version: 4.0.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org
 GCC build triplet: i486-linux-gnu
  GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26558


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