Issue 237495
Summary [clang] SIGSEGV when compiling a class with a reference member initialized from a temporary object's member with -fopenmp
Labels clang:frontend, crash-on-invalid, generated by fuzzer
Assignees
Reporter k-arrows
    Reproducer:
https://godbolt.org/z/f69MPccrs
```cpp
struct S {
  S() {}
  int &foo = S().bar;
};
```

Output:
```console
<source>:3:18: error: no member named 'bar' in 'S'
    3 |   int &foo = S().bar;
      |              ~~~ ^
Program terminated with signal SIGSEGV (11)
Compiler returned: 139
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to