<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 --- - odd "attribute cannot be applied to types" error"
   href="http://llvm.org/bugs/show_bug.cgi?id=16370">16370</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>odd "attribute cannot be applied to types" error
          </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++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>stephan.bergmann.secondary@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>The unit

struct S1 { virtual ~S1(); };
struct S2: S1 {};
struct S3: S2 {};
struct S4: virtual S2 {};
struct S5: S3, S4 {
    S5();
    ~S5();
};
S5::S5() {}

fails with

<span class="quote">> $ clang++ -c test.cc
> test.cc:5:8: error: 'S5' attribute cannot be applied to types
> struct S5: S3, S4 {
>        ^
> 1 error generated.</span >

with recent Clang trunk ("clang version 3.4 (trunk 184282)") but works with
Clang 3.3 ("clang version 3.3 (tags/RELEASE_33/final 184073)").</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>