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]

C++, 2.95: Maybe bug with nested template specialization (variant)



// this is something for which I have no clue what the compiler
// explains about:
//    test06.cc:15: explicit specialization in non-namespace scope `X<Y>'
//    test06.cc:15: enclosing class templates are not explicitly  specialized
//    test06.cc:15: template parameters not used in partial specialization:
//    test06.cc:15:         `Y'
// configuration:
//    gcc 2.95, sparc-sun-solaris2.6
//
// regards,
//   Wolfgang
template <class Y>  class X 
{
    template <int N> class T    {};
    template <>      class T<1> { int i1; };
};


-------------------------------------------------------------------------
Wolfgang Bangerth          email: wolfgang.bangerth@iwr.uni-heidelberg.de
                             www: http://gaia.iwr.uni-heidelberg.de/~wolf





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