From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1634 invoked by alias); 25 Jul 2002 13:56:04 -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 1614 invoked by uid 71); 25 Jul 2002 13:56:03 -0000 Resent-Date: 25 Jul 2002 13:56:03 -0000 Resent-Message-ID: <20020725135603.1611.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, jfranzoy@yahoo.com.ar Received: (qmail 30473 invoked by uid 61); 25 Jul 2002 13:53:35 -0000 Message-Id: <20020725135335.30472.qmail@sources.redhat.com> Date: Thu, 25 Jul 2002 06:56:00 -0000 From: jfranzoy@yahoo.com.ar Reply-To: jfranzoy@yahoo.com.ar To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/7402: Partial Template Specialization Problem X-SW-Source: 2002-07/txt/msg00681.txt.bz2 List-Id: >Number: 7402 >Category: c++ >Synopsis: Partial Template Specialization Problem >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Thu Jul 25 06:56:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: jfranzoy@yahoo.com.ar >Release: g++ version 3.0.4 >Organization: >Environment: g++ -v Reading specs from /usr/local/gcc-3.0.4/lib/gcc-lib/sparc-sun-solaris2.6/3.0.4/specs Configured with: ../gcc-3.0.4/configure --prefix=/usr/local/gcc-3.0.4 --with-ld=/usr/ccs/bin/ld --with-as=/usr/ccs/bin/as --enable-threads=posix --enable-languages=c++ Thread model: posix gcc version 3.0.4 uname -a SunOS ultra5 5.6 Generic_105181-20 sun4u sparc SUNW,Ultra-5_10 /usr/platform/sun4u/sbin/prtdiag -v System Configuration: Sun Microsystems sun4u Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 360MHz) System clock frequency: 90 MHz Memory size: 256 Megabytes ========================= CPUs ========================= Run Ecache CPU CPU Brd CPU Module MHz MB Impl. Mask --- --- ------- ----- ------ ------ ---- 0 0 0 360 0.2 12 9.1 ========================= IO Cards ========================= No failures found in System =========================== ========================= HW Revisions ========================= ASIC Revisions: --------------- System PROM revisions: ---------------------- >Description: The compiler does not see a partial template specialization when one of the template-argument-list (those that follow the class template name) is an inner type of another template instantiation. >How-To-Repeat: g++ PossibleGCCBug.cpp >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="PossibleGCCBug.cpp" Content-Disposition: inline; filename="PossibleGCCBug.cpp" #include template struct TemplateParameterGenerator { typedef T Result; }; template class SomeClassTemplate; template class SomeClassTemplate< typename TemplateParameterGenerator::Result > { }; int main() { SomeClassTemplate fi; }