<html>
    <head>
      <base href="https://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 --- - Self referential using declaration inside a derived class lack an accompanying Note in C++11"
   href="https://llvm.org/bugs/show_bug.cgi?id=27742">27742</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Self referential using declaration inside a derived class lack an accompanying Note in C++11
          </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>charles_li@playstation.sony.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This diagnostic inconsistency has been discovered while 
updating the following Lit test for C++11 compatibiliity.

  CXX/dcl.dcl/basic.namespace/namespace.udecl/p4.cpp


Here is a reduced test case:
/***********************************/
struct Base { };


struct C : Base {
  int bar();
  using C::bar;
};
/***********************************/

When compiling in C++98, Clang issues both an Error and a Note.

$ clang useself.cpp -c -std=c++98 -Wall -Weverything
useself.cpp:7:12: error: using declaration refers to its own class
  using C::bar;
        ~~~^
useself.cpp:6:7: note: target of using declaration
  int bar();
      ^
1 error generated.


When compiling in C++11, Clang issues just an Error.

$ clang useself.cpp -c -std=c++11 -Wall -Weverything
useself.cpp:7:12: error: using declaration refers to its own class
  using C::bar;
        ~~~^
1 error generated.</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>