> -Original Message-
> From: David Brown [mailto:da...@westcontrol.com]
> Sent: 19 March 2014 15:47
> To: Paulo Matos; gcc@gcc.gnu.org
> Subject: Re: returning short-enum and truncate doesn't trigger
> conversion warning
>
>
> Usually the discovery of
On 19/03/14 15:55, Paulo Matos wrote:
>
>
>> -Original Message-
>> From: David Brown [mailto:da...@westcontrol.com]
>> Sent: 19 March 2014 14:44
>> To: Paulo Matos; gcc@gcc.gnu.org
>> Subject: Re: returning short-enum and truncate doesn't trigge
> -Original Message-
> From: David Brown [mailto:da...@westcontrol.com]
> Sent: 19 March 2014 14:44
> To: Paulo Matos; gcc@gcc.gnu.org
> Subject: Re: returning short-enum and truncate doesn't trigger
> conversion warning
>
> On 19/03/14 15:33, Paulo Matos wr
On 19/03/14 15:33, Paulo Matos wrote:
> Hi all,
>
> This is either a C standard subtlety or a bug in GCC.
This is perfectly normal behaviour for C, and not a bug. It is also a
topic for the gcc help list, rather than the development list.
> For example:
> unsigned short foo (unsigned int a)
> {