------- Comment #1 from pinskia at gcc dot gnu dot org 2007-12-21 22:27 ------- You forgot "const" in the second template. Changing that to: template < class T, const int & R > Cat < T, R > :: Cat ( int ) { }
Allows for this to work. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34550