https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110255
Bug ID: 110255 Summary: arm: MVE intrinsics C++ polymorphism with -flax-vector-conversions Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: stammark at gcc dot gnu.org Target Milestone: --- Hi all, See: https://godbolt.org/z/53ME1fGfM The compiler with the error is the one that is using -flax-vector-conversions through the C++ frontend. Unsure if this is something to do with the C++ front-end or something in the target backend (and how the builtins are registered with the front-end). This seems to happen regardless of if the vaddq intrinsic has been "restructured" by Christophe's https://gcc.gnu.org/pipermail/gcc-patches/2023-April/615997.html (so going back to older GCC12,13 still gives the error), but another intrinsic, like vbicq, doesn't give the error at all (although that has a different context of the `int` immediate having to be a compile-time constant). (clang handles all this fine FWIW) Has anyone seen this kind of thing before, have any ideas on workarounds, or have any insight on if this this invalid C++ to begin with?