[LLVMbugs] [Bug 10929] inconsistent warning for implicit truncation to bitfield

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Oct 9 12:22:25 PDT 2011


Douglas Gregor <dgregor at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Douglas Gregor <dgregor at apple.com> 2011-10-09 14:22:25 CDT ---
The compiler can't warn about implicit truncation for FLAG2 because FLAG2 is
not a constant. The warning would end up being a false positive if, for
example, FLAG2 were assigned to a smaller value somewhere else in the program.

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