<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 crashes with libstdc++ tuples"
   href="http://llvm.org/bugs/show_bug.cgi?id=16689">16689</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang crashes with libstdc++ tuples
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </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>C++11
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>mustrumr97@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.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=10917" name="attach_10917" title="Source, output and gdb backtrace">attachment 10917</a> <a href="attachment.cgi?id=10917&action=edit" title="Source, output and gdb backtrace">[details]</a></span>
Source, output and gdb backtrace

This program:
    #include <tuple>
    template<class X, int Y>
    struct a: public X{
        using X::X;
    };
    int main(){
        auto x=a<std::tuple<int, int>, 42>();
    }
makes clang crash.

The problem doesn't happen with libstdc++.
The problem is in the assignment - without it the program compiles fine.
The problem only happens with two-argument tuples.
The problem only happens when the Y parameter is non-class.
The problem does not depend on the value of Y.</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>