[Bug c++/35989] code rejected in template specialization (4.2 did accept)

da_cra_hunt at yahoo dot com gcc-bugzilla@gcc.gnu.org
Thu Jul 23 17:34:00 GMT 2009



------- Comment #3 from da_cra_hunt at yahoo dot com  2009-07-23 17:34 -------
Simple case :


template<typename C> struct A {};
template<typename C> struct B { struct Inner {}; };

template<typename K>
struct A<typename B<K>::Inner> {};


4.1.2/VS2005 compile quietly. 4.3.2 (g++ -c test.cpp) gives :

kk.cpp:5: error: template parameters not used in partial specialization:
kk.cpp:5: error:         ‘K’


-- 

da_cra_hunt at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |da_cra_hunt at yahoo dot com


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



More information about the Gcc-bugs mailing list