Re: bug ? : -Wpedantic -Wconversion 'short a=1; a-=1;' complaint

2018-05-16 Thread Jonathan Wakely
On 16/05/18 13:58 +, Jason Vas Dias wrote: Great thanks for your informative response, Jim! : RE: On 23/04/2018, Jim Wilson wrote: On 04/23/2018 07:11 AM, Jason Vas Dias wrote: I really do not think a '-Wpedantic -Wconversion' warning should be generated for the

Re: bug ? : -Wpedantic -Wconversion 'short a=1; a-=1;' complaint

2018-05-16 Thread Jason Vas Dias
Great thanks for your informative response, Jim! : RE: On 23/04/2018, Jim Wilson wrote: > On 04/23/2018 07:11 AM, Jason Vas Dias wrote: >> >> I really do not think a '-Wpedantic -Wconversion' warning should >> be generated for the following code, but it is >> (with GCC 6.4.1 and

Re: bug ? : -Wpedantic -Wconversion 'short a=1; a-=1;' complaint

2018-04-23 Thread Jim Wilson
On 04/23/2018 07:11 AM, Jason Vas Dias wrote: I really do not think a '-Wpedantic -Wconversion' warning should be generated for the following code, but it is (with GCC 6.4.1 and 7.3.1 on RHEL-7.5 Linux) : $ echo ' typedef unsigned short U16_t; static void f(void) { U16_t a = 1;

bug ? : -Wpedantic -Wconversion 'short a=1; a-=1;' complaint

2018-04-23 Thread Jason Vas Dias
I really do not think a '-Wpedantic -Wconversion' warning should be generated for the following code, but it is (with GCC 6.4.1 and 7.3.1 on RHEL-7.5 Linux) : $ echo ' typedef unsigned short U16_t; static void f(void) { U16_t a = 1; a-=1; }' > t.C; $ g++ -std=c++14 -Wall -Wextra