<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 --- - Clang incorrectly detects is_constructible when compiling from AST"
   href="http://llvm.org/bugs/show_bug.cgi?id=19928">19928</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang incorrectly detects is_constructible when compiling from AST
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.4
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>slambright@coverity.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>clang-support@coverity.com, 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=12595" name="attach_12595" title="Source code reproducer">attachment 12595</a> <a href="attachment.cgi?id=12595&action=edit" title="Source code reproducer">[details]</a></span>
Source code reproducer

<span class="quote">> clang --version</span >
Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4)
Target: x86_64-pc-linux-gnu
Thread model: posix

# Normal compilation is successful.
<span class="quote">> clang -std=c++11 -c reproducer.cpp </span >
# Creating an AST from the source file is successful
<span class="quote">> clang -std=c++11 -emit-ast -o reproducer.cpp.ast reproducer.cpp</span >
# Compiling the source code from the AST is not successful when it should be.
<span class="quote">> clang -std=c++11 reproducer.cpp.ast -o reproducer.o</span >
reproducer.cpp:62:3: error: static_assert failed ""
  static_assert(!is_constructible<T, T const &>::value, "");
  ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
reproducer.cpp:68:3: note: in instantiation of function template specialization
'try_ctor<class test_t>' requested here
  try_ctor<test_t>();
  ^
1 error generated.
Exit 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>