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++/15359] errors specializing a template class of a template class


------- Additional Comments From bangerth at dealii dot org  2004-05-10 18:11 -------
If you want to specialize a class, you shouldn't omit the 'class' 
keyword. The way specializations work is this: 
--------- 
template <typename E> 
struct F { 
    template<typename G> class H; 
}; 
 
template <> 
template<typename E> 
class F<int>::H<E> {}; 
----------- 
Your original code is still invalid, not because gcc doesn't like it 
but because the standard says so. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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