[llvm-bugs] [Bug 39486] New: printf vector conversion specifier produces incorrect warning
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Oct 29 11:35:11 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=39486
Bug ID: 39486
Summary: printf vector conversion specifier produces incorrect
warning
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: OpenCL
Assignee: unassignedclangbugs at nondot.org
Reporter: J.Price at bristol.ac.uk
CC: anastasia.stulova at arm.com, llvm-bugs at lists.llvm.org,
Matthew.Arsenault at amd.com
As of r343653, Clang now produces a warning when using the 'v' conversion
specifier in a printf format string, which it shouldn't (when compiling for
OpenCL).
Example kernel:
kernel void foo(float4 arg)
{
printf("%.2v4f\n", arg);
}
Clang Output:
foo.cl:3:14: warning: invalid conversion specifier 'v'
printf("%.2v4f\n", arg);
~~~^
1 warning generated.
--
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/20181029/cd4761fc/attachment.html>
More information about the llvm-bugs
mailing list