<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Methods inherited in nested class generate spurious override error"
   href="https://bugs.llvm.org/show_bug.cgi?id=33312">33312</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Methods inherited in nested class generate spurious override error
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>4.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </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>matt@ookypooky.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18574" name="attach_18574" title="Minimal example demonstrating the problem">attachment 18574</a> <a href="attachment.cgi?id=18574&action=edit" title="Minimal example demonstrating the problem">[details]</a></span>
Minimal example demonstrating the problem

The attached code fails to compile (with "clang++ -std=c++11") with the
following error:

<source>:14:18: error: 'method' marked 'override' but does not override any
member functions
    virtual void method () override {}
                 ^

This fails with every version of clang from 3.1 onwards, but works with all
(C++11 supporting) versions of gcc; see <a href="https://godbolt.org/g/eI7da0">https://godbolt.org/g/eI7da0</a> .
Clang-3.0 works ok.</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>