public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "vegard.nossum at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67582] typeof(*p) * fails when p is void * Date: Tue, 15 Sep 2015 14:05:00 -0000 [thread overview] Message-ID: <bug-67582-4-aRZx6Lmyop@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-67582-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67582 --- Comment #5 from Vegard Nossum <vegard.nossum at gmail dot com> --- (In reply to Jonathan Wakely from comment #4) > But *p is not a valid expression, so you might as well ask for > typeof(this is nonsense and not valid C++). > > You also can't ask for sizeof(*p) for a void pointer. The following bits from the standard draft seem to support what you say: [basic.compound].3 "The type of a pointer to void or a pointer to an object type is called an object pointer type. [ Note: A pointer to void does not have a pointer-to-object type, however, because void is not an object type. — end note ]" [expr.unary.op].1 "The unary * operator performs indirection: the expression to which it is applied shall be a pointer to an object type, or a pointer to a function type and the result is an lvalue referring to the object or function to which the expression points." >From gcc-bugs-return-497260-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 15 14:10:58 2015 Return-Path: <gcc-bugs-return-497260-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104513 invoked by alias); 15 Sep 2015 14:10:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103549 invoked by uid 55); 15 Sep 2015 14:10:50 -0000 From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/67470] [5 Regression] ICE at -O3 on x86_64-linux-gnu in compute_live_loop_exits, at tree-ssa-loop-manip.c:235 Date: Tue, 15 Sep 2015 14:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work short_desc Message-ID: <bug-67470-4-x7dbFAlWVi@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-67470-4@http.gcc.gnu.org/bugzilla/> References: <bug-67470-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-09/txt/msg01238.txt.bz2 Content-length: 682 https://gcc.gnu.org/bugzilla/show_bug.cgi?idg470 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |6.0 Summary|[5/6 Regression] ICE at -O3 |[5 Regression] ICE at -O3 |on x86_64-linux-gnu in |on x86_64-linux-gnu in |compute_live_loop_exits, at |compute_live_loop_exits, at |tree-ssa-loop-manip.c:235 |tree-ssa-loop-manip.c:235 --- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- Fixed on trunk sofar.
prev parent reply other threads:[~2015-09-15 14:05 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-09-15 8:38 [Bug c++/67582] New: " vegard.nossum at gmail dot com 2015-09-15 9:47 ` [Bug c++/67582] " redi at gcc dot gnu.org 2015-09-15 9:48 ` redi at gcc dot gnu.org 2015-09-15 10:28 ` vegard.nossum at gmail dot com 2015-09-15 11:53 ` redi at gcc dot gnu.org 2015-09-15 14:05 ` vegard.nossum at gmail dot com [this message]
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-67582-4-aRZx6Lmyop@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).