This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29766] Template Specialization break down
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Nov 2006 23:46:14 -0000
- Subject: [Bug c++/29766] Template Specialization break down
- References: <bug-29766-13534@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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