[LLVMbugs] [Bug 8641] New: Clang incorrectly warns of undefined behavior with printf specifier %#X
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Nov 17 18:37:12 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=8641
Summary: Clang incorrectly warns of undefined behavior with
printf specifier %#X
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: kevin at sb.org
CC: llvmbugs at cs.uiuc.edu
Attempting to compile the following line of code:
printf("%#X\n", 50);
results in a spurious warning:
foo.c:4:14: warning: flag '#' results in undefined behavior with 'X' conversion
specifier [-Wformat]
printf("%#X\n", 50);
~^~
This is incorrect. The '#' flag applies to 'X' just as well as it does to 'x'.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list