This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5476: Bug with template
- From: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-gnats at gcc dot gnu dot org, m dot duflot at ulg dot ac dot be, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Mon, 28 Oct 2002 03:45:43 +0200
- Subject: Re: c++/5476: Bug with template
Hi,
the bug can be reproduced with the following smaller testcase:
----------------------------snip here--------------------------------
template <int> struct A {};
template <typename T> struct C
{
static const int i=0;
void foo (const A<i>&);
};
template <typename T> void C<T>::foo (const A<i>&) {}
----------------------------snip here--------------------------------
Greetings,
Volker Reichelt
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5476