<html>
    <head>
      <base href="https://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: ESI.Type != EST_Uninstantiated && ESI.Type != EST_Unevaluated"
   href="https://llvm.org/bugs/show_bug.cgi?id=28465">28465</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failed: ESI.Type != EST_Uninstantiated && ESI.Type != EST_Unevaluated
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.8
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>jtony@ca.ibm.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ ~/runnable/bin/clang++ -std=c++11 r.cpp

Assertion failed: ESI.Type != EST_Uninstantiated && ESI.Type !=
EST_Unevaluated, file:
/home/jtony/clang_syn/clang/llvm-dev.src/tools/clang/lib/Sema/TreeTransform.h,
line: 4956
CEE5207E The signal SIGABRT was received.
clang-3.8: error: unable to execute command: Signal 3
clang-3.8: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0 (tags/RELEASE_380/final)
Target: s390-ibm-zos
Thread model: posix
InstalledDir: /home/jtony/runnable/bin
clang-3.8: 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.8: error: unable to execute command: Signal 9
clang-3.8: note: diagnostic msg: Error generating preprocessed source(s).
CEE3561S External function get_new_handler__3stdFv was not found in DLL
CELHDCPP.
         From compile unit
/home/jtony/clang_syn/clang/llvm-dev.src/tools/clang/lib/Basic/Diagnostic.cpp
at entry point
         clang::DiagnosticsEngine::~DiagnosticsEngine() at statement 757 at
compile unit offset +000000BC at entry

 $ cat r.cpp
struct FOO {
  int foo()
  {
        struct FOO : ::FOO {
                using ::FOO::FOO;
                operator int() {return i;}
        };
        FOO a(1);
        return a;
  }
  ~FOO();
  template <typename T> FOO(T = 0);
  operator int() {return i;}
  int i;
} a(2);

int main()
{
  return a.foo();
}

         offset +000000BC at address 2D018364.


This problem can also be reproduced on linux, here is the printf log I got in
clang 3.8 on linux ( I added the printf info in my local clang 3.8 build):

clang  t.cpp -std=c++11 -c
(ESI.Type != EST_Unevaluated)=0 
(ESI.Type != EST_Uninstantiated)=1</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>