From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29732 invoked by alias); 14 Mar 2003 11:36:01 -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 29710 invoked by uid 71); 14 Mar 2003 11:36:00 -0000 Resent-Date: 14 Mar 2003 11:36:00 -0000 Resent-Message-ID: <20030314113600.29709.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, stip@mathematik.uni-ulm.de Received: (qmail 26009 invoked by uid 48); 14 Mar 2003 11:27:21 -0000 Message-Id: <20030314112721.26008.qmail@sources.redhat.com> Date: Fri, 14 Mar 2003 11:36:00 -0000 From: stip@mathematik.uni-ulm.de Reply-To: stip@mathematik.uni-ulm.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/10079: With two identical template function signatures gcc crashes instead of emitting "ambiguous" or "duplicate" X-SW-Source: 2003-03/txt/msg00836.txt.bz2 List-Id: >Number: 10079 >Category: c++ >Synopsis: With two identical template function signatures gcc crashes instead of emitting "ambiguous" or "duplicate" >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Mar 14 11:36:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: stip@mathematik.uni-ulm.de >Release: unknown-1.0 >Organization: >Environment: GNU C++ version 3.2 (sparc-sun-solaris2.9) compiled by GNU C version 3.2. >Description: One template function is given directly. An overload version of this function is created via "restricted templates, i.e. given (1) dummy(const V &, const V &) and (2) dummy(const U &, const W&). Now (2) gets instantiated in a way that the two signatures become somewhat identical. In that case gcc stops with "Internal error", "segmentation fault". >How-To-Repeat: just compile. >Fix: >Release-Note: >Audit-Trail: >Unformatted: