From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32287 invoked by alias); 19 May 2003 14:46:03 -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 32183 invoked by uid 71); 19 May 2003 14:46:02 -0000 Resent-Date: 19 May 2003 14:46:02 -0000 Resent-Message-ID: <20030519144602.32181.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, bangerth@dealii.org Received: (qmail 25113 invoked by uid 48); 19 May 2003 14:43:41 -0000 Message-Id: <20030519144341.25098.qmail@sources.redhat.com> Date: Mon, 19 May 2003 14:46:00 -0000 From: bangerth@dealii.org Reply-To: bangerth@dealii.org To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: optimization/10862: [tree-ssa] Segfault for (essentially) empty function X-SW-Source: 2003-05/txt/msg02086.txt.bz2 List-Id: >Number: 10862 >Category: optimization >Synopsis: [tree-ssa] Segfault for (essentially) empty function >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon May 19 14:46:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Wolfgang Bangerth >Release: unknown-1.0 >Organization: >Environment: >Description: This one's rather funny (and was much simpler to reduce). We ICE on a function that's essentially empty: ---------------------------------------template void foo () { int i; switch (i) { case 1: switch (N) {} default: ; } } template void foo<1> (); --------------------------- g/x> /home/bangerth/bin/gcc-3.4-tree-ssa/bin/c++ -O2 -c a.cc a.cc: In function `void foo() [with int N = 1]': a.cc:10: instantiated from here a.cc:6: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. g/x> /home/bangerth/bin/gcc-3.4-tree-ssa/bin/c++ -v Reading specs from /home/bangerth/bin/gcc-3.4-tree-ssa/lib/gcc-lib/i686-pc-linux-gnu/3.5-tree-ssa/specs Configured with: ../gcc-3.4-CVS-tree-ssa/configure --enable-checking --enable-languages=c,c++,f77 --prefix=/home/bangerth/bin/gcc-3.4-tree-ssa Thread model: posix gcc version 3.5-tree-ssa 20030516 (merged 20030511) >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: