public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/25682] [4.0/4.1/4.2 Regression] ICE when using old sytle offsetof (with non zero start) as array size Date: Tue, 17 Jan 2006 09:58:00 -0000 [thread overview] Message-ID: <20060117095801.25292.qmail@sourceware.org> (raw) In-Reply-To: <bug-25682-3368@http.gcc.gnu.org/bugzilla/> ------- Comment #6 from jakub at gcc dot gnu dot org 2006-01-17 09:58 ------- Subject: Bug 25682 Author: jakub Date: Tue Jan 17 09:57:56 2006 New Revision: 109812 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109812 Log: PR c/25682 * c-typeck.c (build_unary_op): Fold offsetof-like expressions even when the pointer is not NULL. cp/ * decl.c (compute_array_index_type): After issuing not an integral constant-expression error, set size to 1 to avoid ICEs later on. testsuite/ * gcc.dg/pr25682.c: New test. * g++.dg/parse/array-size2.C: New test. Added: trunk/gcc/testsuite/g++.dg/parse/array-size2.C trunk/gcc/testsuite/gcc.dg/pr25682.c Modified: trunk/gcc/ChangeLog trunk/gcc/c-typeck.c trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25682
next prev parent reply other threads:[~2006-01-17 9:58 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-01-05 21:39 [Bug c/25682] New: ICE when using (int)(&((S*)0)->field) " gcc-bugzilla at gcc dot gnu dot org 2006-01-05 22:36 ` [Bug c/25682] [4.0/4.1/4.2 Regression] " steven at gcc dot gnu dot org 2006-01-05 22:42 ` pinskia at gcc dot gnu dot org 2006-01-07 16:01 ` [Bug c/25682] [4.0/4.1/4.2 Regression] ICE when using old sytle offsetof (with non zero start) " pinskia at gcc dot gnu dot org 2006-01-14 6:04 ` pinskia at gcc dot gnu dot org 2006-01-15 22:27 ` mmitchel at gcc dot gnu dot org 2006-01-16 12:46 ` jakub at gcc dot gnu dot org 2006-01-16 19:28 ` janis at gcc dot gnu dot org 2006-01-17 9:58 ` jakub at gcc dot gnu dot org [this message] 2006-01-17 10:00 ` jakub at gcc dot gnu dot org 2006-02-27 20:25 ` [Bug c/25682] [4.0 " mmitchel at gcc dot gnu dot org 2006-02-28 11:38 ` jakub at gcc dot gnu dot org 2006-02-28 12:45 ` pinskia at gcc dot gnu dot 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=20060117095801.25292.qmail@sourceware.org \ --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).