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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to