This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
internal compiler persists in gcc-2.95 and 2.95.1
- To: gcc-bugs at gcc dot gnu dot org
- Subject: internal compiler persists in gcc-2.95 and 2.95.1
- From: Corey Kosak <kosak at cs dot cmu dot edu>
- Date: Mon, 16 Aug 1999 16:40:38 -0400
[ First reported in http://egcs.cygnus.com/ml/gcc-bugs/1999-05/msg00811.html ]
% cat annoying.cc && g++ -v && g++ annoying.cc
template<template<class> class T> void f1() {}
template<template<class> class T> void f2() { f1<T>(); }
template<class T> class cow{};
int main()
{
f2<cow>();
}
Reading specs from /usr/local/libexec/egcs-19990808/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/specs
gcc version 2.95.1 19990809 (prerelease)
annoying.cc: In instantiation of `f1<T>()':
annoying.cc:2: instantiated from `f2<template <class T> cow<T> >()'
annoying.cc:7: instantiated from here
annoying.cc:1: Internal compiler error.
annoying.cc:1: Please submit a full bug report.
annoying.cc:1: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
%