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

            Bug ID: 39471
           Summary: ext_vector_type as c++11 attribute with clang::
                    prefix.
           Product: clang
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: OpenCL
          Assignee: unassignedclangb...@nondot.org
          Reporter: l...@marehr.dialup.fu-berlin.de
                CC: anastasia.stul...@arm.com, llvm-bugs@lists.llvm.org

I would expect that the following should work

```c++
template <typename value_type, unsigned length>
struct simd
{
  // using type = value_type __attribute__((ext_vector_type(length))); works
  using type [[clang::ext_vector_type(length)]] = value_type; // does not work
};

using int32x16_t = simd<int, 16>::type;
```

but fails with the following message:

```terminal
warning: unknown attribute 'ext_vector_type' ignored [-Wunknown-attributes]
  using type [[clang::ext_vector_type(length)]] = value_type;
               ^
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to