-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
__attribute__((vector_size)) and templates #16102
Comments
I see this too under Ubuntu 14.04 with clang version 3.5.0 (trunk 210014). |
I'm gonna handle this one by changing vector_size attribute to have an AST node (as aligned and align_value attributes do, for example). Alexey FrolovSoftware Engineer |
Is anyone assigned to this issue? I'm pretty sure llvm/llvm-bugzilla-archive#34878 is a duplicate of this issue. Best regards, |
llvm/llvm-bugzilla-archive#16986 looks like another duplicate, and it seems the issue was solved in clang 9, yay. /Lars |
*** Bug llvm/llvm-bugzilla-archive#16986 has been marked as a duplicate of this bug. *** |
*** Bug llvm/llvm-bugzilla-archive#34878 has been marked as a duplicate of this bug. *** |
mentioned in issue llvm/llvm-bugzilla-archive#16986 |
mentioned in issue llvm/llvm-bugzilla-archive#34878 |
Extended Description
Hi,
the following bit of code:
template <int N, typename T> struct Foo
{
typedef T attribute((vector_size(N*sizeof(T)))) type;
};
compiles fine with gcc 4.7.2, however when compiled with clang 3.2 I get:
foo.cc:4:41: error: expected ')'
typedef T attribute((vector_size(Nsizeof(T)))) type;
^
)
foo.cc:4:41: error: expected ')'
typedef T attribute((vector_size(Nsizeof(T)))) type;
^
)
foo.cc:4:53: error: expected member name or ';' after declaration specifiers
typedef T attribute((vector_size(N*sizeof(T)))) type;
The text was updated successfully, but these errors were encountered: