<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - __vector long long produces "deprecated" warning message on each "long" specifier"
href="http://llvm.org/bugs/show_bug.cgi?id=20720">20720</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>__vector long long produces "deprecated" warning message on each "long" specifier
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hstong@ca.ibm.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>