From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19969 invoked by alias); 1 May 2003 18:46: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 19949 invoked by uid 71); 1 May 2003 18:46:00 -0000 Resent-Date: 1 May 2003 18:46:00 -0000 Resent-Message-ID: <20030501184600.19948.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 Resent-Reply-To: gcc-gnats@gcc.gnu.org, giovannibajo@libero.it Received: (qmail 14735 invoked by uid 48); 1 May 2003 18:38:41 -0000 Message-Id: <20030501183841.14734.qmail@sources.redhat.com> Date: Thu, 01 May 2003 18:46:00 -0000 From: giovannibajo@libero.it Reply-To: giovannibajo@libero.it To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/10585: Using typeof() for template parameters does not work (and ICEs on 3.3) X-SW-Source: 2003-05/txt/msg00055.txt.bz2 List-Id: >Number: 10585 >Category: c++ >Synopsis: Using typeof() for template parameters does not work (and ICEs on 3.3) >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Thu May 01 18:46:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Giovanni Bajo >Release: 3.3 and 3.4 (CVS 20030430) >Organization: >Environment: i686-pc-cygwin >Description: This is basically c++/4526, but epurated. The following snippet does not compile on the active branch (3.3) and the mainline (3.4): ------------------------------------ struct X { typedef int type; }; X x; template struct A { typedef typename T::type type; }; template struct B { typename A::type y; }; template class B; ------------------------------------ pr4526.cpp:9: error: no type named `type' in `struct A<__typeof (x)>' pr4526.cpp:9: error: ISO C++ forbids declaration of `y' with no type 3.3 CVS 20030421 even ICEs with this code snippet. Note also that this bug might be related to c++/8007. >How-To-Repeat: Compile the above snippet >Fix: No known fix. >Release-Note: >Audit-Trail: >Unformatted: