C++, 2.95: Maybe bug with nested template specialization

Wolfgang Bangerth wolf@gaia.iwr.uni-heidelberg.de
Thu Aug 12 14:29:00 GMT 1999


// Not being a language lawyer, I nevertheless think this should work.
// Configuration:
//    gcc version 2.95
//    sparc-sun-solaris2.6
//
// gcc output:
//     tmp/x> c++ -c z.cc
//     z.cc:16: explicit specialization in non-namespace scope `Outer' 
//
// Best regards,
//   Wolfgang
//
class Outer 
{
    template <int dim> class Inner    {};
    template <>        class Inner<1> {};;
};


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







More information about the Gcc-bugs mailing list