From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10846 invoked by alias); 15 Aug 2002 21:16:13 -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 10761 invoked by uid 71); 15 Aug 2002 21:16:10 -0000 Resent-Date: 15 Aug 2002 21:16:10 -0000 Resent-Message-ID: <20020815211610.10759.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, dv@vollmann.ch Received: (qmail 5122 invoked from network); 15 Aug 2002 21:11:46 -0000 Received: from unknown (HELO mustang.centralnet.ch) (193.135.146.12) by sources.redhat.com with SMTP; 15 Aug 2002 21:11:46 -0000 Received: from octo.vollmann.ch (luz48.centralnet.ch [193.246.195.48]) by mustang.centralnet.ch (8.9.3/8.9.3) with ESMTP id XAA641404 for ; Thu, 15 Aug 2002 23:11:36 +0200 (MES) Received: (from dv@localhost) by octo.vollmann.ch (8.11.2/8.11.2) id g7FHLo618833; Thu, 15 Aug 2002 19:21:50 +0200 Message-Id: <200208151721.g7FHLo618833@octo.vollmann.ch> Date: Thu, 15 Aug 2002 14:26:00 -0000 From: dv@vollmann.ch To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: c++/7605: ICE on template instatiation X-SW-Source: 2002-08/txt/msg00315.txt.bz2 List-Id: >Number: 7605 >Category: c++ >Synopsis: ICE on template instatiation >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Thu Aug 15 14:16:06 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Detlef Vollmann >Release: 3.1.1 >Organization: vollmann engineering gmbh >Environment: System: Linux octo 2.4.18-xfs-1.1 #1 Mon Jul 1 05:12:32 MEST 2002 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ../gcc-3.1.1/configure --program-suffix=-3 --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-version-specific-runtime-libs --enable-languages=c,c++ >Description: propmap.cpp: In instantiation of `samples::PropertyMapImpl<0>': propmap.cpp:91: instantiated from here propmap.cpp:74: Internal compiler error in is_base_type, at dwarf2out.c:7460 >How-To-Repeat: g++-3 -g -c propmap.cpp Attached is the original source, which includes the standard header and the preprocessed source. >Fix: Original source: propmap.cpp: // sample program to exploit gcc 3.1 bug #include namespace samples { template struct RawPointerTraits { typedef T * pointer; typedef T const * const_pointer; typedef T& reference; typedef T const & const_reference; typedef T value_type; typedef unsigned int size_type; typedef int difference_type; static pointer address(T &r) { return &r; } static const_pointer address(T const &r) { return &r; } }; template class ShMemSysAlloc {}; template