[llvm-bugs] [Bug 37864] requested alignment is dependent but declaration is not dependent

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 20 14:51:10 PDT 2018


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |richard-llvm at metafoo.co.uk
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
This code is ill-formed. alignas cannot be applied to a typedef.

We do permit __attribute__((aligned(N))) to be applied to a typedef, with the
restriction described in this error message. This is a compiler extension, and
GCC and Clang happen to (intentionally, on our part) have slightly different
extensions here.

-- 
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/20180620/aa771332/attachment-0001.html>


More information about the llvm-bugs mailing list