[llvm-bugs] [Bug 49311] New: typedef syntax for `using [[gnu::vector_size]]` not accepted
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Feb 22 05:07:59 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=49311
Bug ID: 49311
Summary: typedef syntax for `using [[gnu::vector_size]]` not
accepted
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++2a
Assignee: unassignedclangbugs at nondot.org
Reporter: koncek.marian at gmail.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
The following line:
using simd_t = int [[gnu::vector_size(16)]];
is not accepted by Clang (but is accepted by GCC).
Note that a typedef declaration is accepted also by Clang:
typedef int simd_t [[gnu::vector_size(16)]];
See:
https://gcc.godbolt.org/z/zYc7ec
--
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/20210222/a152b7ac/attachment.html>
More information about the llvm-bugs
mailing list