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: unassignedclangb...@nondot.org
          Reporter: j.pr...@bristol.ac.uk
                CC: anastasia.stul...@arm.com, llvm-bugs@lists.llvm.org,
                    matthew.arsena...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to