[llvm-bugs] [Bug 47790] New: segfault in frontend while parsing Objective-C with OpenMP
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Oct 10 13:31:02 PDT 2020
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: unassignedclangbugs at nondot.org
Reporter: tbruio at outlook.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201010/97c01445/attachment.html>
More information about the llvm-bugs
mailing list