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

2006-11-08 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-11-08 23:47 --- *** This bug has been marked as a duplicate of 20133 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

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

2006-11-08 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-11-08 23:46 --- Reduced testcase: template struct mytree { static int counter; }; template int mytree::counter = 0; --- Now I have seen this before, this is invalid code you should be doing: template<> int mytree::counter = 0;

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

2006-11-08 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-11-08 23:23 --- The new ICE is: t.cc: In member function 'mytree& mytree::insert(mytree*, mytree*, mytree*, bool) [with C = int]': t.cc:54: instantiated from 'int mytree::counter' t.cc:54: instantiated from 'mytree& mytree::inse