http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 --- Comment #25 from Chengnian Sun --- Today I encountered a similar case as follows. The conversion warning by gcc is not true as right-shifting an unsigned short decreases the value. BTW clang does not emit warnings for this code snippet. $: cat s1.c unsigned short fn(unsigned short a, int right) { return a >> right; } $: gcc-trunk -c -Wconversion s1.c s1.c: In function ‘fn’: s1.c:2:3: warning: conversion to ‘short unsigned int’ from ‘int’ may alter its value [-Wconversion] return a >> right; ^ $: clang-trunk -c -Wconversion s1.c $: >From gcc-bugs-return-443154-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Feb 10 01:28:47 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15230 invoked by alias); 10 Feb 2014 01:28:47 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15198 invoked by uid 48); 10 Feb 2014 01:28:43 -0000 From: "dartmetrash at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/60113] Internal compiler error Date: Mon, 10 Feb 2014 01:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.6.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dartmetrash at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-02/txt/msg00911.txt.bz2 Content-length: 461 http://gcc.gnu.org/bugzilla/show_bug.cgi?id`113 --- Comment #2 from lmat --- Created attachment 32090 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id2090&actioníit Bug report including command line output. My apologies! I was quite sure I had attached it, but I see quite plainly that I had failed! It appears that my upload was too big. I've divided it up using split --lines 35000 ... which creates three files.