<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 --- - failed assertion `(PtrInfo.V == 0 || isa<PointerType>(PtrInfo.V->getType())) && "invalid pointer value"' atCodeGen/MachineInstr.cpp:428"
   href="http://llvm.org/bugs/show_bug.cgi?id=15821">15821</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>failed assertion `(PtrInfo.V == 0 || isa<PointerType>(PtrInfo.V->getType())) && "invalid pointer value"' atCodeGen/MachineInstr.cpp:428
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

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

        <tr>
          <th>Keywords</th>
          <td>compile-fail
          </td>
        </tr>

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

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

        <tr>
          <th>Component</th>
          <td>Backend: PowerPC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>fang@csl.cornell.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>annulen@yandex.ru, hfinkel@anl.gov, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Report separated from <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - PPC64: Assertion failure in CodeGen/MachineInstr.cpp: "invalid pointer value""
   href="show_bug.cgi?id=14779">bug 14779</a>.

% ../../../gcc40-cmake-build/bin/clang++ -c SetTheory.cpp -o SetTheory.o
/Users/fang/local/src/LLVM-svn/llvm/lib/CodeGen/MachineInstr.cpp:428: failed
assertion `(PtrInfo.V == 0 || isa<PointerType>(PtrInfo.V->getType())) &&
"invalid pointer value"'
Stack dump:
0.      Program arguments:
/Volumes/Isolde/builds/LLVM/gcc40-cmake-build/bin/clang-3.1 -cc1 -triple
powerpc-apple-macosx10.4.0 -emit-obj -mrelax-all -disable-free -main-file-name
SetTheory.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim
-masm-verbose -coverage-file
/Users/fang/local/src/LLVM-svn/gcc40-stage2-build/lib/DebugInfo/SetTheory.o
-resource-dir
/Volumes/Isolde/builds/LLVM/gcc40-cmake-build/bin/../lib/clang/3.3
-fdeprecated-macro -fdebug-compilation-dir
/Users/fang/local/src/LLVM-svn/gcc40-stage2-build/lib/DebugInfo -ferror-limit
19 -fmessage-length 80 -mstackrealign -fblocks -fblocks-runtime-optional
-fobjc-runtime=macosx-10.4.0 -fobjc-default-synthesize-properties
-fencode-extended-block-signature -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o SetTheory.o -x c++ SetTheory.cpp 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'SetTheory.cpp'.
4.      Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on
function '@_ZN1F6apply2ER1CPiR1AxS4_1B'
clang-3.1: error: unable to execute command: Abort trap
clang-3.1: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 
Target: powerpc-apple-darwin8.11.0
Thread model: posix
clang-3.1: 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-3.1: note: diagnostic msg: 
********************

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

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

Reduced test case from Konstantin in <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - PPC64: Assertion failure in CodeGen/MachineInstr.cpp: "invalid pointer value""
   href="show_bug.cgi?id=14779">bug 14779</a>:
% cat SetTheory.cpp
class A;
class B {};
class C
{
public:
    typedef A RecSet;
    C();
};
struct D  {
    virtual void apply2(C &p1, int *, C::RecSet &p3, long long ,  C::RecSet
&p5, B ) ;
};
struct F :  D {
    void apply2(C &p1, int *, C::RecSet &p3, long long, C::RecSet &p5, B ) {  
}
};
C::C()
{
    F();
}

This occurs on the powerpc-darwin8 branch (last trunk merge r179582).</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>