Issue |
94027
|
Summary |
Clang crashes when compiling Objective C++ BLOCK capturing and using outer ivar in a class member initializer
|
Labels |
clang
|
Assignees |
|
Reporter |
kar8uncle
|
Clang crashes when compiling the following program: `clang++ -fobjc-arc -std=c++11 -o main.o main.mm`
```
#import <Foundation/Foundation.h>
@interface Foo : NSObject
@end
@implementation Foo
{
id _bar;
}
- (void)captureBar
{
(void) ^{
struct
{
id bar = _bar;
} fb;
};
}
@end
```
## Version
This clang came with Xcode 15.2.
```
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: arm64-apple-darwin23.5.0
Thread model: posix
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs