c++/5476: Bug with template
Reichelt
reichelt@igpm.rwth-aachen.de
Sun Oct 27 16:56:00 GMT 2002
The following reply was made to PR c++/5476; it has been noted by GNATS.
From: Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, m.duflot@ulg.ac.be, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org
Cc:
Subject: Re: c++/5476: Bug with template
Date: Mon, 28 Oct 2002 03:45:43 +0200
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
More information about the Gcc-prs
mailing list