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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
            Summary|GCC trunk ICEs in the SIMD  |GCC trunk ICEs in the SIMD
                   |clone IPA pass when         |clone IPA pass when
                   |compiling a                 |compiling a
                   |__attribute__((simd))       |__attribute__((simd))
                   |function with an unusual    |function with return type
                   |return type.                |of typedef to void
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2026-01-07

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
```
  /* Adjust the function return type.  */
  if (orig_rettype == void_type_node)
    return;

```

That should be:
```
  /* Adjust the function return type.  */
  if (TREE_CODE (orig_rettype) == VOID_TYPE)
    return;
```

this is in simd_clone_adjust_return_type.

simd_clone_adjust has the same bug:
```
  if (orig_rettype != void_type_node)

```

Reply via email to