[llvm-bugs] [Bug 39471] New: ext_vector_type as c++11 attribute with clang:: prefix.
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Oct 28 11:53:16 PDT 2018
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: unassignedclangbugs at nondot.org
Reporter: llvm at marehr.dialup.fu-berlin.de
CC: anastasia.stulova at arm.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181028/e4a77668/attachment-0001.html>
More information about the llvm-bugs
mailing list