<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 --- - Incorrect error when virtually inheriting from standard exception classes."
   href="http://llvm.org/bugs/show_bug.cgi?id=18194">18194</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Incorrect error when virtually inheriting from standard exception classes.
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>natalie@lifewanted.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=11698" name="attach_11698" title="Example showing virtual inheritance issue.">attachment 11698</a> <a href="attachment.cgi?id=11698&action=edit" title="Example showing virtual inheritance issue.">[details]</a></span>
Example showing virtual inheritance issue.

The code attached correctly compiles with Apple's Clang v5.0 on OS 10.9 and on
GCC 4.8.1 on Ubuntu 13.10. However, using Clang v3.4 (the most recent
available) on Ubuntu 13.10 produces these errors:

    clangClass.cpp:24:7: error: 'CompilerError' attribute cannot be applied to
types
    class CompilerError : VirtualException, std::logic_error {
          ^
    clangClass.cpp:24:7: error: 'CompilerError' attribute cannot be applied to
types
    class CompilerError : VirtualException, std::logic_error {
          ^
    clangClass.cpp:24:7: error: 'CompilerError' attribute cannot be applied to
types
    class CompilerError : VirtualException, std::logic_error {
          ^
    3 errors generated.

I believe these errors to be a mistake as the code makes no use of attributes
and compiles correctly on GCC. I am compiling with the command `clang++
-std=c++11 -c clangClass.cpp`.

I have posted this issue to StackOverflow as well, in hopes that it was my
error not Clang's, but it appears to be Clang.

<a href="http://stackoverflow.com/questions/20461921/clang-compiler-error-with-virtual-inheritance">http://stackoverflow.com/questions/20461921/clang-compiler-error-with-virtual-inheritance</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>