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]

internal compiler persists in gcc-2.95 and 2.95.1



[ 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.
% 


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