c++/3784: evil bug from hell

Nathanael Nerode neroden@twcny.rr.com
Fri Jan 3 11:04:00 GMT 2003


Even simpler test case.

--
template <int N> class X {} ;

template <long P> void foo(X<P>) ; // this is the killer line
template <int N> void bar(X<N>) {return;};

int main() {
  X<2> x;
  bar(x);
}
--

Note that deleting the killer line or moving it below the other template 
makes everything work.

This is really, really, broken.



More information about the Gcc-bugs mailing list