Skip to content

[Clang] Crash in Itanium mangler #82926

@philnik777

Description

@philnik777
template<class _Tp>
using __simd_vector __attribute__((__ext_vector_type__(1))) = _Tp;

template<class _VecT>
using __simd_vector_underlying_type_t
    = decltype([]<class _Tp>(__simd_vector<_Tp>) {}(_VecT {}), 1);

template<class _VecT>
void temp()
{
  [](__simd_vector_underlying_type_t<_VecT>) {};
}

void call()
{
  ::temp<::__simd_vector<char>>();
}

This causes Clang to crash, but I'm not really sure why. (https://godbolt.org/z/Tz9vEq4h5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partycrash-on-valid

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions