This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/66827] [6 Regression] left shifts of negative value warnings due to C++14 switch
- From: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Nov 2015 16:48:00 +0000
- Subject: [Bug other/66827] [6 Regression] left shifts of negative value warnings due to C++14 switch
- Auto-submitted: auto-generated
- References: <bug-66827-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66827
Paolo Bonzini <bonzini at gnu dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bonzini at gnu dot org
--- Comment #4 from Paolo Bonzini <bonzini at gnu dot org> ---
Using
#define UNKNOWN_DEP_COST (-1u<<19)
is dangerous in case UNKNOWN_DEP_COST is later assigned to a long. Do not do
this please.