https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98195

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|internal compiler error:    |ICE after `void value not
                   |Segmentation fault          |ignored as it ought to be`
                   |                            |error
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |pinskia at gcc dot 
gnu.org

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
We have:
```
(gdb) p debug_tree(*expr_p)
 <target_expr 0x7ffff78005b0
    type <void_type 0x7ffff7822f18 void VOID
        align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff7822f18
        pointer_to_this <pointer_type 0x7ffff782a000>>
    side-effects
    arg:0 <var_decl 0x7ffff7810f30 D.2776 type <void_type 0x7ffff7822f18 void>
        addressable used ignored read VOID t9.c:9:2
        align:8 warn_if_not_align:0>
    arg:1 <call_expr 0x7ffff79d78a0 type <void_type 0x7ffff7822f18 void>
        side-effects
        fn <addr_expr 0x7ffff79ad6a0 type <pointer_type 0x7ffff79b1888>
            constant arg:0 <function_decl 0x7ffff79b3600 foo>
            t9.c:9:7 start: t9.c:9:7 finish: t9.c:9:9>
        t9.c:9:7 start: t9.c:9:7 finish: t9.c:9:27>
    t9.c:9:4 start: t9.c:9:4 finish: t9.c:9:5>

```

Maybe we should have created a target_expr with an error_mark instead.

Let me look into this.

Reply via email to