public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/20760] New: cast to variable-length array type combined with switch statement gives segv
@ 2005-04-04 21:59 eabaltz at sophont dot net
  2005-04-04 22:00 ` [Bug c/20760] " eabaltz at sophont dot net
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: eabaltz at sophont dot net @ 2005-04-04 21:59 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-06-01 18:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-04 21:59 [Bug c/20760] New: cast to variable-length array type combined with switch statement gives segv eabaltz at sophont dot net
2005-04-04 22:00 ` [Bug c/20760] " eabaltz at sophont dot net
2005-04-04 23:26 ` pinskia at gcc dot gnu dot org
2005-04-05 20:50 ` jsm28 at gcc dot gnu dot org
2005-06-01 10:23 ` cvs-commit at gcc dot gnu dot org
2005-06-01 10:36 ` cvs-commit at gcc dot gnu dot org
2005-06-01 18:59 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).