<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Assertion failed: (E->isRValue() && E->getType()->hasPointerRepresentation()), function EvaluatePointer, file tools/clang/lib/AST/ExprConstant.cpp, line 4489"
   href="http://llvm.org/bugs/show_bug.cgi?id=16727">16727</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failed: (E->isRValue() && E->getType()->hasPointerRepresentation()), function EvaluatePointer, file tools/clang/lib/AST/ExprConstant.cpp, line 4489
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dimitry@andric.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=10946" name="attach_10946" title="Testcase for isRValue && hasPointerRepresentation assert">attachment 10946</a> <a href="attachment.cgi?id=10946&action=edit" title="Testcase for isRValue && hasPointerRepresentation assert">[details]</a></span>
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 <a href="http://sdcc.sourceforge.net/">http://sdcc.sourceforge.net/</a> ):

$ 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
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> 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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>