[LLVMbugs] [Bug 16553] New: error: cannot compile this conditional operator yet

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 6 14:21:56 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16553

            Bug ID: 16553
           Summary: error: cannot compile this conditional operator yet
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jan.smets at alcatel-lucent.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

class CLASS
{
public:
    void blabla(void);

protected:
    void  bla(bool is) { (is ? bit2 : bit1) = 1; }
    unsigned int bit1 : 1;
    unsigned int bit2 : 2;
};



void CLASS::blabla(void)
{
    bla(1);
}



   void  bla(bool is) { (is ? bit2 : bit1) = 1; }
                          ^~~~~~~~~~~~~~~~
Referring to a basic block in another function!
  br i1 %tobool, label %cond.true, label %cond.false
Broken module found, compilation aborted!
0  clang           0x0000000001f52b42 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  clang           0x0000000001f54b7a
2  libpthread.so.0 0x00007fc82d1bc500
3  libc.so.6       0x00007fc82c2a08a5 gsignal + 53
4  libc.so.6       0x00007fc82c2a2085 abort + 373
5  clang           0x0000000001f135e0
6  clang           0x0000000001eed688
llvm::FPPassManager::runOnFunction(llvm::Function&) + 568
7  clang           0x0000000001eed847
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 183
8  clang           0x0000000001eedb6c
llvm::FunctionPassManager::run(llvm::Function&) + 220
9  clang           0x0000000000816a56
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 1686
10 clang           0x00000000008140b9
11 clang           0x00000000009bb56e clang::ParseAST(clang::Sema&, bool, bool)
+ 382
12 clang           0x0000000000812d9e clang::CodeGenAction::ExecuteAction() +
78
13 clang           0x00000000006927d9 clang::FrontendAction::Execute() + 313
14 clang           0x0000000000673f75
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 341
15 clang           0x0000000000654f87
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1543
16 clang           0x000000000064aba8 cc1_main(char const**, char const**, char
const*, void*) + 984
17 clang           0x0000000000652bc8 main + 7448
18 libc.so.6       0x00007fc82c28ccdd __libc_start_main + 253
19 clang           0x000000000064a5e9


clang version 3.4 (trunk 185734)

-- 
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/20130706/55afe25f/attachment.html>


More information about the llvm-bugs mailing list