public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/54552] New: Cast to pointer to VLA crash the compiler
@ 2012-09-11 16:09 jens.gustedt at loria dot fr
  2012-09-11 16:12 ` [Bug c/54552] " jens.gustedt at loria dot fr
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jens.gustedt at loria dot fr @ 2012-09-11 16:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54552

             Bug #: 54552
           Summary: Cast to pointer to VLA crash the compiler
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jens.gustedt@loria.fr


Created attachment 28172
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28172
code to reproduce the problem

I stumbled int to a case where a cast (double(*)[n]) crashes the compiler,
whereas first having a typedef for the VLA works ok.

I attach code that reproduces the problem for me. The bug is present as well in
gcc 4.6.3 as in 4.7.0. This is on an ubuntu x86_64, but I don't think that this
should matter.

Jens


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

end of thread, other threads:[~2012-09-20 20:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-11 16:09 [Bug c/54552] New: Cast to pointer to VLA crash the compiler jens.gustedt at loria dot fr
2012-09-11 16:12 ` [Bug c/54552] " jens.gustedt at loria dot fr
2012-09-11 16:18 ` [Bug c/54552] [4.6/4.7/4.8 Regression] " jakub at gcc dot gnu.org
2012-09-14 21:17 ` jsm28 at gcc dot gnu.org
2012-09-14 21:19 ` [Bug c/54552] [4.6/4.7 " jsm28 at gcc dot gnu.org
2012-09-15  0:29 ` jsm28 at gcc dot gnu.org
2012-09-15  0:32 ` jsm28 at gcc dot gnu.org
2012-09-20 10:20 ` jakub at gcc dot gnu.org
2012-09-20 20:50 ` jsm28 at gcc dot gnu.org
2012-09-20 20:55 ` jsm28 at gcc dot gnu.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).