-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LLVM frontend crashes when compiling a header file with implementation #1772
Comments
Veli-Pekka, Could you please get a stack trace for this? You can do that by running: llvm-gcc -v -emit-llvm testi.h That will produce a command line that llvm-gcc runs (probably cc1) to do the Thanks, Reid. |
I cannot reproduce it here (mingw32, llvm-gcc 2.0cvs as of March). The result is Veli-Pekka, have you used 1.9 sources/binaries or built llvm-gcc from svn? |
Recent addendum of eraseLocalLLVMValues() breaks this again (However, release |
Sorry, eraseLocalLLVMValues() wasn't commited yet. It seems to be local problem |
…71b610c349a1d502ba83af632ae98+2955a27abc25cd1b9d737c211c2cfe11e2a5de3e 🍒/bastille/b981924bdda71b610c349a1d502ba83af632ae98+2955a27abc25cd1b9d737c211c2cfe11e2a5de3e
Extended Description
vjaaskel@kizarwexius:~/testdata/c/testi$ cat testi.h
int main() {
return 0;
}
vjaaskel@kizarwexius:~/testdata/c/testi$ llvm-gcc -emit-llvm testi.h
testi.h:3: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://llvm.org/bugs for instructions.
vjaaskel@kizarwexius:~/testdata/c/testi$ gcc testi.h
vjaaskel@kizarwexius:~/testdata/c/testi$ llvm-gcc --version
llvm-gcc (GCC) 4.0.1 LLVM (Apple Computer, Inc. build 5449)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The text was updated successfully, but these errors were encountered: