--- Comment #7 from doko at ubuntu dot com 2010-09-20 18:01 ---
trunk 20100918 fails with:
gcc -g -O0 -c foo.c
foo.c: In function 'main':
foo.c:4:5: error: void value not ignored as it ought to be
foo.c:4:5: error: void value not ignored as it ought to be
foo.c:4:7: internal compiler
--- Comment #6 from pinskia at gcc dot gnu dot org 2010-03-08 17:15 ---
No longer working on this one.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-03-03 19:00 ---
Reduced testcase:
int main(void)
{
int gpf;
if(gpf ? (void) (0) : f ()) ;
}
--- CUT ---
Looking into it.
--
pinskia at gcc dot gnu dot org changed:
What|Removed
--- Comment #4 from pinskia at gcc dot gnu dot org 2010-03-03 19:02 ---
I get:
t1.c:4:7: internal compiler error: tree check: expected class type, have
exceptional (error_mark) in get_narrower, at tree.c:7654
Now.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43082
--- Comment #5 from pinskia at gcc dot gnu dot org 2010-03-03 19:21 ---
I have a patch to c_common_truthvalue_conversion which fixes this issue.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43082
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-02-16 10:21 ---
We get
6493 STRIP_USELESS_TYPE_CONVERSION (*expr_p);
(gdb) call debug_tree (*expr_p)
nop_expr 0x75b99150
type boolean_type 0x77ee4888 _Bool public unsigned QI
size integer_cst