[LLVMbugs] [Bug 16727] New: Assertion failed: (E->isRValue() && E->getType()->hasPointerRepresentation()), function EvaluatePointer, file tools/clang/lib/AST/ExprConstant.cpp, line 4489

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jul 28 13:41:58 PDT 2013


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

            Bug ID: 16727
           Summary: Assertion failed: (E->isRValue() &&
                    E->getType()->hasPointerRepresentation()), function
                    EvaluatePointer, file
                    tools/clang/lib/AST/ExprConstant.cpp, line 4489
           Product: new-bugs
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dimitry at andric.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10946
  --> http://llvm.org/bugs/attachment.cgi?id=10946&action=edit
Testcase for isRValue && hasPointerRepresentation assert

This is an assert encountered while compiling a certain file of the FreeBSD
port lang/sdcc (Small Device C Compiler, see http://sdcc.sourceforge.net/ ):

$ clang++ -c SDCClospre-a1f812.cpp
Assertion failed: (E->isRValue() && E->getType()->hasPointerRepresentation()),
function EvaluatePointer, file
/share/dim/src/llvm/trunk/tools/clang/lib/AST/ExprConstant.cpp, line 4489.
Stack dump:
0.      Program arguments:
/share/dim/llvm/187332-trunk-freebsd10-amd64-aconf-rel-1/bin/clang -cc1 -triple
x86_64-unknown-freebsd10.0 -emit-obj -mrelax-all -disable-free -main-file-name
SDCClospre-a1f812.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.23.2 -coverage-file /share/dim/src/llvm/bugs/rvalue/SDCClospre-a1f812.o
-resource-dir
/share/dim/llvm/187332-trunk-freebsd10-amd64-aconf-rel-1/bin/../lib/clang/3.4
-fdeprecated-macro -fdebug-compilation-dir /share/dim/src/llvm/bugs/rvalue
-ferror-limit 19 -fmessage-length 154 -mstackrealign -fobjc-runtime=gnustep
-fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -o
SDCClospre-a1f812.o -x c++ SDCClospre-a1f812.cpp
1.      ./SDCClospre.hpp:669:122: current parser token ')'
2.      ./SDCClospre.hpp:628:1: parsing function body
'implement_lospre_assignment'
3.      ./SDCClospre.hpp:628:1: in compound statement ('{}')
4.      ./SDCClospre.hpp:663:5: in compound statement ('{}')
clang: error: unable to execute command: Abort trap (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (trunk ^/cfe/trunk 187332)
Target: x86_64-unknown-freebsd10.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/SDCClospre-a1f812-82db27.cpp
clang: note: diagnostic msg: /tmp/SDCClospre-a1f812-82db27.sh
clang: note: diagnostic msg:

********************

Because attempting to reduce the file does not work (the error is not triggered
anymore, or clang crashes on something else), I will attach the full testcase.

-- 
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/20130728/99acb805/attachment.html>


More information about the llvm-bugs mailing list