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++/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



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