https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83547
Bug ID: 83547
Summary: [8 Regression] (statement-frontiers) error: void value
not ignored as it ought to be
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
Assignee: unassigned at gcc dot gnu.org
Reporter: trippels at gcc dot gnu.org
CC: aoliva at gcc dot gnu.org
Target Milestone: ---
trippels@gcc2-power8 linux % cat lpar.i
void foo(void) {
if (({ 0; }))
;
}
trippels@gcc2-power8 linux % gcc -O2 -c lpar.i
trippels@gcc2-power8 linux % gcc -gno-statement-frontiers -O2 -g -c lpar.i
trippels@gcc2-power8 linux % gcc -O2 -g -c lpar.i
lpar.i: In function ‘foo’:
lpar.i:2:7: error: void value not ignored as it ought to be
if (({ 0; }))
^