From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11839 invoked by alias); 7 Jun 2010 17:52:58 -0000 Received: (qmail 11792 invoked by uid 48); 7 Jun 2010 17:52:46 -0000 Date: Mon, 07 Jun 2010 17:52:00 -0000 Message-ID: <20100607175246.11791.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/42935] warn if a binary operation is performed on a type but the result is then casted to a larger type In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "manu at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-06/txt/msg00765.txt.bz2 ------- Comment #4 from manu at gcc dot gnu dot org 2010-06-07 17:52 ------- uint32_t bar; uint64_t foo; ... foo = bar << 20; Is another testcase from PR 44420. -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2010-02-24 00:16:51 |2010-06-07 17:52:46 date| | Summary|Warning "u64 = u32 * u32;" -|warn if a binary operation |i.e. not casting one u32 to |is performed on a type but |u64 |the result is then casted to | |a larger type http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42935