This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3784: evil bug from hell
- From: Nathanael Nerode <neroden at twcny dot rr dot com>
- To: gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, holt at gholt dot net, nathan at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Date: Fri, 3 Jan 2003 06:03:16 -0500
- Subject: Re: c++/3784: evil bug from hell
- Reply-to: neroden at twcny dot rr dot com
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.