Re: g++ doesn't diagnose implicit int error

2019-06-11 Thread Brian Inglis
On 2019-06-11 11:22, Achim Gratz wrote: > Keith Thompson writes: >> On Windows targets (including Cygwin and MinGW), the "-fms-extensions" >> option is enabled by default. This option enables certain Microsoft >> extensions -- and apparently inhibits any diagnostics for implicit int. >> >> It is u

Re: g++ doesn't diagnose implicit int error

2019-06-11 Thread Achim Gratz
Keith Thompson writes: > On Windows targets (including Cygwin and MinGW), the "-fms-extensions" > option is enabled by default. This option enables certain Microsoft > extensions -- and apparently inhibits any diagnostics for implicit int. > > It is unfortunate, and arguably a bug, that this means

Re: g++ doesn't diagnose implicit int error

2019-06-11 Thread Keith Thompson
I believe this answer by user "M.M" on Stack Overflow explains the issue: https://stackoverflow.com/a/56537459/827263 On Windows targets (including Cygwin and MinGW), the "-fms-extensions" option is enabled by default. This option enables certain Microsoft extensions -- and apparently inhibits an

g++ doesn't diagnose implicit int error

2019-06-09 Thread Keith Thompson
See https://stackoverflow.com/q/56519330/827263 posted by user Fureeish g++ on Cygwin does not diagnose an implicit int error. The same version of g++ on Ubuntu correctly diagnoses the error. (I had initially thought that g++ was defaulting to "-fpermissive", but that would change the fatal error