<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 --- - class with pure virtuals makes it non-destructible (unlike libstdc++)"
   href="http://llvm.org/bugs/show_bug.cgi?id=20096">20096</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>class with pure virtuals makes it non-destructible (unlike libstdc++)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.4
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>jbeich@tormail.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu, mclow.lists@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ clang++ -std=c++11 -stdlib=libstdc++ -I/path/to/gcc48/include/c++ a.cc
$ clang++ -std=c++11 -stdlib=libc++ a.cc
a.cc:11:3: error: static_assert failed "A"
  static_assert(std::is_destructible<A>::value, "A");
  ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

$ cat a.cc
#include <type_traits>

class A
{
public:
  virtual int B() const = 0;
};

int main()
{
  static_assert(std::is_destructible<A>::value, "A");
  return 0;
}</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>