public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jsm28 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/54552] [4.6/4.7 Regression] Cast to pointer to VLA crash the compiler Date: Thu, 20 Sep 2012 20:50:00 -0000 [thread overview] Message-ID: <bug-54552-4-t1w0I9XYXM@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-54552-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54552 --- Comment #8 from Joseph S. Myers <jsm28 at gcc dot gnu.org> 2012-09-20 20:50:27 UTC --- Author: jsm28 Date: Thu Sep 20 20:50:17 2012 New Revision: 191591 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191591 Log: PR c/54552 * c-typeck.c (c_cast_expr): When casting to a type requiring C_MAYBE_CONST_EXPR to be created, pass the inner expression to c_fully_fold first. testsuite: * gcc.c-torture/compile/pr54552-1.c: New test. Added: branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/compile/pr54552-1.c Modified: branches/gcc-4_7-branch/gcc/ChangeLog branches/gcc-4_7-branch/gcc/c-typeck.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
next prev parent reply other threads:[~2012-09-20 20:50 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-09-11 16:09 [Bug c/54552] New: " 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 [this message] 2012-09-20 20:55 ` jsm28 at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-54552-4-t1w0I9XYXM@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).