https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117290
Bug ID: 117290
Summary: error: void value not ignored , pointing to the wrong
function
Product: gcc
Version: 10.1.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111344
--- Comment #6 from Mark Galeck ---
(In reply to Andrew Pinski from comment #5)
> Reduced:
> ```
> int *f(const char*);
> int *g(int*);
> int main()
> {
> int* pdir;
> int* pentry;
>
> pdir = f("d");
>
> while (pentry = g(pdir)) ;
> }
> ``
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111344
--- Comment #4 from Mark Galeck ---
I am getting seemingly bogus "warning: suggest parentheses around assignment
used as truth value [-Wparentheses]". I see long time ago there were such
reports, fixed at the time, but this is happening now for
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111344
--- Comment #3 from Mark Galeck ---
Created attachment 55859
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55859&action=edit
preprocessed SSCCE foobar.i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111344
--- Comment #2 from Mark Galeck ---
Created attachment 55858
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55858&action=edit
preprocessed SSCCE foobar.i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111344
Bug ID: 111344
Summary: bogus "warning: suggest parentheses around assignment
used as truth value [-Wparentheses]"
Product: gcc
Version: unknown
Status: UNCONFIRMED