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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2024-08-26
             Status|UNCONFIRMED                 |NEW
            Summary|Allow constexpr expression  |Allow constexpr expression
                   |in riscv_rvv_vector_bits    |in riscv_rvv_vector_bits
                   |attribute                   |attribute and
                   |                            |arm_sve_vector_bits
     Ever confirmed|0                           |1

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks like arm_sve_vector_bits will have the same issue.

The way the standard attribute allows constexpr, etc to work is to use
default_conversion .
e.g.:
  if (size && TREE_CODE (size) != IDENTIFIER_NODE
      && TREE_CODE (size) != FUNCTION_DECL)
    size = default_conversion (size);

But default_conversion is only available from the C family frontends. Looks
like a lang-hook is needed here ...

Reply via email to