<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 --- - Constructor inheritance with parent class alias fails for nested templates"
   href="http://llvm.org/bugs/show_bug.cgi?id=22242">22242</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Constructor inheritance with parent class alias fails for nested templates
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.5
          </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>andreas.stoeckel@googlemail.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>Compiling the following code with clang++ -c test.cpp -std=c++11 fails with the
missleading error message

test.cpp:14:14: error: dependent using declaration resolved to type without
'typename' using Base::B;


template <class T>
class A {};

template <class T>
class B {
public:
    B(){};
};

template <class T>
class C : public B<A<T>> {
public:
    using Base = B<A<T>>;
    using Base::B; // <-- Error here
};

static const C<int> c{};


When writing one of the following, equivalent statements instead of "using
Base::B" the code compiles:

using Base::Base
using B<A<T>>::Base

The error does also not occur if A is not a templated class. The code compiles
fine with gcc 4.9. I've posted a question at stackoverflow regarding this
problem at <a href="http://stackoverflow.com/q/27954940/2188211">http://stackoverflow.com/q/27954940/2188211</a></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>