[LLVMbugs] [Bug 11518] New: clang frontend cmd SEGV after "cannot compile this conditional operator yet"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Dec 9 00:12:30 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=11518
Bug #: 11518
Summary: clang frontend cmd SEGV after "cannot compile this
conditional operator yet"
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: mnemo at minimum.se
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 7695
--> http://llvm.org/bugs/attachment.cgi?id=7695
TC for the uncompilable conditional (doesn't hit SEGV though)
Unfortunately, I'm not allowed to paste the exact error, but it looks similar
to this:
blaH.h:1974:50: error: cannot compile this conditional operator yet
void SomeFunc(BOOL value) { value ? thing.field = 1
: thing.field = 0; }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/SOME-FILENAME-lCCbJS.ii
make[2]: *** [../../blah/blah/file.o] Error 254
0 clang 0x000000000182c0cf
1 clang 0x000000000182c559
2 libpthread.so.0 0x00002b42ea8c3c60
3 clang 0x00000000015ddd3b
4 clang 0x00000000015dd6ca
5 clang 0x000000000179ceef
llvm::FPPassManager::runOnFunction(llvm::Function&) + 335
6 clang 0x000000000179c90c
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 428
7 clang 0x000000000179c72b
llvm::FunctionPassManager::run(llvm::Function&) + 139
8 clang 0x00000000007a18dc
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 4636
9 clang 0x000000000079fee2
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 274
10 clang 0x000000000089b153 clang::ParseAST(clang::Sema&, bool) + 403
11 clang 0x000000000079f3e2 clang::CodeGenAction::ExecuteAction() +
738
12 clang 0x0000000000689259
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 873
13 clang 0x0000000000674c5a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2714
14 clang 0x000000000066d176 cc1_main(char const**, char const**, char
const*, void*) + 6182
15 clang 0x00000000006710dc main + 748
16 libc.so.6 0x00002b42eb497eff __libc_start_main + 255
17 clang 0x000000000066b889
Stack dump:
0. Program arguments: /home/autobuilder/src/llvm/llvm/Release/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free
-disable-llvm-verifier ... lots of source filenames and switches etc here ...
1. <eof> parser at end of file
2. Per-function optimization
3. Running pass 'Simplify the CFG' on function
'@_ZN12HTML_Element26SetHasRealSizeDependentCssEi'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/SOMETHING-qIPDL4.ii
I also make a small TC that can repro the "cannot compile this conditional
operator yet" part, but my small TC doesn't hit the SEGV it seems.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list