[llvm-bugs] [Bug 11071] compiler error parsing 'aligned' attribute in cast

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Apr 17 12:44:22 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=11071

Bill Wendling <isanbard at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |isanbard at gmail.com
             Status|NEW                         |RESOLVED

--- Comment #4 from Bill Wendling <isanbard at gmail.com> ---
This appears to be done. This snippet compiles without error:

unsigned int shash_align_buffer_size(unsigned len, unsigned long mask)
{
        typedef unsigned short __attribute__ ((aligned)) u8_aligned;
        return len + (mask & ~(__alignof__(u8_aligned) - 1));
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180417/8765081c/attachment.html>


More information about the llvm-bugs mailing list