https://bugs.llvm.org/show_bug.cgi?id=47790
Bug ID: 47790
Summary: segfault in frontend while parsing Objective-C with
OpenMP
Product: clang
Version: trunk
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: release blocker
Priority: P
Component: Frontend
Assignee: unassignedclangb...@nondot.org
Reporter: tbr...@outlook.com
CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
richard-l...@metafoo.co.uk
Problem
=============
While parsing this simple file with openmp flags passed to the compiler,
frontend crashes (as it says) due to a segmentation fault.
The code is a very toned down version of one of our project files, so excuse
the absolute paths and long compile command.
To get the crash, open the zip, compile the main.mm file using the command
written below.
crash is in 2b510dd7e3c176926c36af1e83f3f033d55b1935 as well as release 11
Compile Command
===========
clang -Xclang -fopenmp
-F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
main.mm
Code
============
```
#include
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/NSWindow.h"
#include
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/NSObject.h"
class Foo {
int a;
};
@interface Bar : NSObject <NSWindowDelegate> {
Foo *foo;
}
- (void)setSystemAndWindowCocoa:(class Foo *)foo_1;
@end
@implementation Bar : NSObject
- (void)setSystemAndWindowCocoa:(Foo *)foo_1 {
foo = foo_1;
}
@end
```
Output
=========
attached
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs