From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2211 invoked by alias); 22 Jul 2009 19:03:55 -0000 Received: (qmail 32213 invoked by uid 48); 22 Jul 2009 19:03:41 -0000 Date: Wed, 22 Jul 2009 19:03:00 -0000 Subject: [Bug c++/40828] New: Rejected valid specialization of member class template X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "andhow at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg01801.txt.bz2 This is similar to bug 14494. The following member code is rejected: template class Outer { template class Inner {}; }; template template <> class Outer::Inner {}; /* error */ with error: test.cpp:7: error: invalid explicit specialization before ‘>’ token test.cpp:7: error: enclosing class templates are not explicitly specialized test.cpp:8: error: template parameters not used in partial specialization: test.cpp:8: error: ‘T’ Of interest, the following partial specialization compiles: template class Outer { template class Inner {}; }; template template class Outer::Inner {}; -- Summary: Rejected valid specialization of member class template Product: gcc Version: 4.3.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: andhow at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40828