http://llvm.org/bugs/show_bug.cgi?id=20720
Bug ID: 20720
Summary: __vector long long produces "deprecated" warning
message on each "long" specifier
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Using the AltiVec "vector long long" type produces a "deprecated" warning on
each instance of "long". As demonstrated by the error message, "vector long
long" is distinct from "vector long" (the latter of which is indeed
deprecated).
### SOURCE:
$ cat vll.c
extern vector long long vll;
extern void *vll;
### COMPILER INVOCATION AND OUTPUT:
$ clang -target powerpc64-unknown-linux-gnu -maltivec -x c vll.c
vll.c:1:15: warning: Use of 'long' with '__vector' is deprecated [-Wdeprecated]
extern vector long long vll;
^
vll.c:1:20: warning: Use of 'long' with '__vector' is deprecated [-Wdeprecated]
extern vector long long vll;
^
vll.c:2:14: error: redefinition of 'vll' with a different type: 'void *' vs
'__vector long long' (vector of 2 'long long' values)
extern void *vll;
^
vll.c:1:25: note: previous definition is here
extern vector long long vll;
^
2 warnings and 1 error generated.
### EXPECTED OUTPUT:
Just the error.
### COMPILER VERSION INFO:
$ clang -target powerpc64-unknown-linux-gnu -v
clang version 3.6.0 (trunk 215824)
Target: powerpc64-unknown-linux-gnu
Thread model: posix
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs