public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/6801: void * dereference warning given when no evaluation occurs
@ 2002-08-23 13:18 jsm28
  0 siblings, 0 replies; 2+ messages in thread
From: jsm28 @ 2002-08-23 13:18 UTC (permalink / raw)
  To: davem, gcc-bugs, gcc-prs, jsm28, nobody

Synopsis: void * dereference warning given when no evaluation occurs

State-Changed-From-To: open->closed
State-Changed-By: jsm28
State-Changed-When: Fri Aug 23 13:16:11 2002
State-Changed-Why:
    Fixed on mainline, probably by:
    
    2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
    
            * c-tree.h (skip_evaluation): Move declaration...
            * c-common.h: ... here.
            * c-typeck.c (build_external_ref): Don't assemble_external nor
            mark a tree as used if skip_evaluation is set.
            * c-parse.in (typeof): New non-terminal to set skip_evaluation
            around TYPEOF.
            (typespec_nonreserved_nonattr): Use it.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6801


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

* c/6801: void * dereference warning given when no evaluation occurs
@ 2002-05-24 11:14 davem
  0 siblings, 0 replies; 2+ messages in thread
From: davem @ 2002-05-24 11:14 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6801
>Category:       c
>Synopsis:       void * dereference warning given when no evaluation occurs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 24 10:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     davem@redhat.com
>Release:        3.1
>Organization:
>Environment:
sparc-unknown-linux
>Description:
__typeof__(*ptr) *foo;

causes a warning if 'ptr' is 'void *' It warns about a
void pointer dereference, but this expression does not
evaluate, it only determines the type, so the warning appears
at best silly.

This makes some macros very hard to implement.
>How-To-Repeat:
Try to use __typeof__(*ptr) when 'ptr' is 'void *'
>Fix:
No idea.
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-08-23 20:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-23 13:18 c/6801: void * dereference warning given when no evaluation occurs jsm28
  -- strict thread matches above, loose matches on Subject: below --
2002-05-24 11:14 davem

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).