[LLVMbugs] [Bug 10577] New: Assertion `res.getDeclRefExpr() == lastDR' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 3 11:46:44 PDT 2011


           Summary: Assertion `res.getDeclRefExpr() == lastDR' failed
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: grzegorz.dabrowski at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

$ clang -v
clang version 3.0 (trunk 136787)
Target: i386-pc-linux-gnu
Thread model: posix

$ cat uninitialized.cpp 
void test()
    int x = 1;
    int y = (int&)x;

$ clang -c -Wuninitialized uninitialized.cpp
clang: UninitializedValues.cpp:531:
void<unnamed>::TransferFunctions::VisitCastExpr(clang::CastExpr*): Assertion
`res.getDeclRefExpr() == lastDR' failed.
0  clang 0x0996c688
Stack dump:
0.    Program arguments:
/home/stuff/download/SCM/llvm/Release+Asserts/bin/clang -cc1 -triple
i386-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
uninitialized.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -target-cpu pentium4 -target-linker-version -momit-leaf-frame-pointer -coverage-file uninitialized.o
-Wuninitialized -fdeprecated-macro -ferror-limit 19 -fmessage-length 158
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
uninitialized.o -x c++ uninitialized.cpp 
1.    <eof> parser at end of file
2.    uninitialized.cpp:2:1: parsing function body 'test'

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