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: unassignedclangb...@nondot.org
          Reporter: koncek.mar...@gmail.com
                CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
                    llvm-bugs@lists.llvm.org, richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to