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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |middle-end
            Summary|GCC: 14: internal compiler  |ICE with return type of
                   |error: in as_a, at          |typedef of void and
                   |machmode.h:381              |`#pragma omp declare simd`

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed,
This is obvious wrong:
  if (orig_rettype == void_type_node)
    return NULL_TREE;


It should be:
  if (TREE_CODE (orig_rettype) == VOID_TYPE)
    return NULL_TREE;

Reply via email to