Issue |
126490
|
Summary |
false positive of [[clang::require_field_initialization]]
|
Labels |
clang:frontend
|
Assignees |
|
Reporter |
hokein
|
https://godbolt.org/z/eaG1e7ojY
```
struct Foo {
int x;
int y [[clang::require_explicit_initialization]];
};
struct Bar {
Bar(Foo foo) : foo_(foo) {} // Field in 'Foo' requires explicit initialization but is not explicitly initialized
Foo foo_;
};
```
This is caused by the https://github.com/llvm/llvm-project/commit/20fd7df0b847bb46aac2f0b5b71d242220027cbc
cc @higher-performance
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs