From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11681 invoked by alias); 18 May 2003 21:56:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 11662 invoked by uid 71); 18 May 2003 21:56:00 -0000 Resent-Date: 18 May 2003 21:56:00 -0000 Resent-Message-ID: <20030518215600.11660.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, olau@hardworking.dk Resent-Reply-To: gcc-gnats@gcc.gnu.org, giovannibajo@libero.it Received: (qmail 27201 invoked by uid 48); 18 May 2003 21:50:04 -0000 Message-Id: <20030518215004.27200.qmail@sources.redhat.com> Date: Sun, 18 May 2003 21:56:00 -0000 From: giovannibajo@libero.it Reply-To: giovannibajo@libero.it To: gcc-gnats@gcc.gnu.org Cc: olau@hardworking.dk X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: olau@hardworking.dk Subject: c++/10849: [3.3/3.4 regression] Cannot define an out-of-class specialization of a private nested template class X-SW-Source: 2003-05/txt/msg02046.txt.bz2 List-Id: >Number: 10849 >Category: c++ >Synopsis: [3.3/3.4 regression] Cannot define an out-of-class specialization of a private nested template class >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Sun May 18 21:56:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Giovanni Bajo >Release: 3.3 and 3.4 (CVS 20030503) >Organization: >Environment: i686-pc-cygwin >Description: Reported by Ole Laursen here: http://gcc.gnu.org/ml/gcc/2003-05/msg01686.html --------------------------------------------- class X { private: template struct Y; }; template <> struct X::Y {}; --------------------------------------------- gccbug5.cpp:4: error: `template struct X::Y' is private gccbug5.cpp:9: error: within this context Regression on the 3.3 branch and mainline (3.2.2 and 2.95 worked fine). >How-To-Repeat: Compile the above snippet >Fix: >Release-Note: >Audit-Trail: >Unformatted: