<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:richard-llvm@metafoo.co.uk" title="Richard Smith <richard-llvm@metafoo.co.uk>"> <span class="fn">Richard Smith</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - __attribute__((aligned(4))) must be placed in a typedef for it to work."
   href="http://llvm.org/bugs/show_bug.cgi?id=19881">bug 19881</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - __attribute__((aligned(4))) must be placed in a typedef for it to work."
   href="http://llvm.org/bugs/show_bug.cgi?id=19881#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - __attribute__((aligned(4))) must be placed in a typedef for it to work."
   href="http://llvm.org/bugs/show_bug.cgi?id=19881">bug 19881</a>
              from <span class="vcard"><a class="email" href="mailto:richard-llvm@metafoo.co.uk" title="Richard Smith <richard-llvm@metafoo.co.uk>"> <span class="fn">Richard Smith</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=19881#c4">comment #4</a>)
<span class="quote">> Is the syntax for cv qualifiers and __attribute__ different with this
> respect?</span >

Yes. GCC's attribute syntax is weird and underdocumented, but it doesn't behave
like cv-qualifiers in this context.

<span class="quote">> If so, is the difference by accident and incidental, or is there
> some underlying reason?</span >

You should ask the GCC folks this question; we didn't invent the syntax and
semantics here and weren't involved in its design. We just try to be compatible
with how GCC behaves.

Here's what the [GCC
documentation](<a href="https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Attribute-Syntax.html">https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Attribute-Syntax.html</a>)
has to say on this:

"Any list of specifiers and qualifiers at the start of a declaration may
contain attribute specifiers[...]. All attribute specifiers in this place
relate to the declaration as a whole."</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>