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]

[Bug c++/29766] Template Specialization break down



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-11-08 23:46 -------
Reduced testcase:
template <typename C>
struct mytree {
  static int counter;
};
template<int> int mytree<int>::counter = 0;

---

Now I have seen this before, this is invalid code you should be doing:
template<> int mytree<int>::counter = 0;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29766


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