From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12230 invoked by alias); 4 Apr 2005 21:59:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 12169 invoked by uid 48); 4 Apr 2005 21:58:57 -0000 Date: Mon, 04 Apr 2005 21:59:00 -0000 From: "eabaltz at sophont dot net" To: gcc-bugs@gcc.gnu.org Message-ID: <20050404215856.20760.eabaltz@sophont.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/20760] New: cast to variable-length array type combined with switch statement gives segv X-Bugzilla-Reason: CC X-SW-Source: 2005-04/txt/msg00376.txt.bz2 List-Id: gcc -v: Configured with: ../gcc-3.4.3/configure --prefix=/u/ki/eabaltz/usr/i386 Thread model: posix gcc version 3.4.3 command line: gcc -Wall --save-temps bug.c this works: ./a.out 1 matrix[0][]: 1.0 -2.0 -3.0 matrix[1][]: 2.0 4.0 -6.0 matrix[2][]: 3.0 6.0 9.0 matrix[0][]: 1.0 -2.0 -3.0 matrix[1][]: 2.0 4.0 -6.0 matrix[2][]: 3.0 6.0 9.0 --- this doesn't: ./a.out 2 matrix[0][]: 1.0 -2.0 -3.0 matrix[1][]: 2.0 4.0 -6.0 matrix[2][]: 3.0 6.0 9.0 Segmentation fault (core dumped) -- Summary: cast to variable-length array type combined with switch statement gives segv Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: eabaltz at sophont dot net CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20760