Clang ICE SIGSEV in invalid code only in trunk · Issue #140887 · llvm/llvm-project (original) (raw)

I have checked in my local clang, that was downloaded from main branch a few weeks ago and there it does not SIGSEV, so it must be a recent modification that have arised this issue.

Stack dump

Since in my local clang-21 it does not SIGSEV i have not been able to get it, but as it happened in other cases it must be a recursion check.

Program

#include <stdlib.h>
#include <stddef.h>
int main()
{
        struct A {
                struct A(){};

        };
        struct A a;

}

To quickly reproduce

https://godbolt.org/z/TE95s44Wr