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]

Re: c++/3784: evil bug from hell


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.


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