[patch, fortran] PR 47359 - warnings for constant conversion
Thomas Koenig
tkoenig@netcologne.de
Sat Jun 6 10:23:00 GMT 2015
Am 01.06.2015 um 22:10 schrieb Steve Kargl:
>> c) Warn for
>>
>> print *,3.1415926535 with -Wconversion-extra
>>
>> and don't warn for
>>
>> print *,3.141592653589_4
>>
>
> This would be my first choice. If a user actually specifies
> a suffix, I assume that the user has given some thought
> to the preceding digits.
>> d) Like now: Warn with -Wconversion-extra for both
>>
>> print *,3.1415926535
>>
>> and
>>
>> print *,3.14159265358979_4
>
> This would be my second choice.
I would actually prefer d). -Wconversion-extra is about warning
for things that are often correct. I would like to have a chance
to warn about this kind of construct.
Any other comments? OK to commit?
Thomas
More information about the Fortran
mailing list