<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 --- - protected typedef not accessible in derived class"
   href="http://llvm.org/bugs/show_bug.cgi?id=19140">19140</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>protected typedef not accessible in derived class
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>sebastian@theophil.net
          </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>The following code snippet does not compile using clang but according to the
standard it is valid: 

class A {
     protected:
         struct B { };
};

struct D: A::B, A { };

clang fails with "error: 'B' is a protected member of 'A'" 

According to the current standard
(<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3337.pdf">http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3337.pdf</a>), this is
valid  because 

"the use of A::B as a base-specifier is well-formed because D is derived from
A, so checking of base-specifiers must be deferred until the entire
base-specifier-list has been seen."</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>