[Bug fortran/43310] -pedantic errors on valid code involving PARAMETERs initialized to intrinsic function result

2010-03-10 Thread giese025 at umn dot edu
--- Comment #6 from giese025 at umn dot edu 2010-03-10 16:07 --- (In reply to comment #5) (In reply to comment #4) Not all valid FORTRAN 95 programs will compile properly when using this option. If you want to ensure compliance with one of the FORTRAN standards, please see

[Bug fortran/43310] -pedantic errors on valid code involving PARAMETERs initialized to intrinsic function result

2010-03-10 Thread kargl at gcc dot gnu dot org
--- Comment #7 from kargl at gcc dot gnu dot org 2010-03-10 17:17 --- (In reply to comment #6) (In reply to comment #5) (In reply to comment #4) Not all valid FORTRAN 95 programs will compile properly when using this option. If you want to ensure compliance with one of

[Bug fortran/43310] -pedantic errors on valid code involving PARAMETERs initialized to intrinsic function result

2010-03-09 Thread kargl at gcc dot gnu dot org
--- Comment #1 from kargl at gcc dot gnu dot org 2010-03-09 19:40 --- Don't use -pedantic. It forces a symmetric range on the integer type, [-huge():huge]. This can be checked during constant folding, and NOT(A) is detected as an error. gfortran does not instrument the runtime code

[Bug fortran/43310] -pedantic errors on valid code involving PARAMETERs initialized to intrinsic function result

2010-03-09 Thread dominiq at lps dot ens dot fr
--- Comment #2 from dominiq at lps dot ens dot fr 2010-03-09 20:45 --- Don't use -pedantic. It forces a symmetric range on the integer type, [-huge():huge]. This should probably be documented. Probably after Valid Fortran 95 programs should compile properly with or without this

[Bug fortran/43310] -pedantic errors on valid code involving PARAMETERs initialized to intrinsic function result

2010-03-09 Thread kargl at gcc dot gnu dot org
--- Comment #3 from kargl at gcc dot gnu dot org 2010-03-09 21:06 --- If one is trying to adhere to a Standard then use -std=. -pedantic simply should not be used with gfortran. As for documenting this, see arith.c, the PR's listed there and the mailing list. -- kargl at gcc dot

[Bug fortran/43310] -pedantic errors on valid code involving PARAMETERs initialized to intrinsic function result

2010-03-09 Thread giese025 at umn dot edu
--- Comment #4 from giese025 at umn dot edu 2010-03-10 01:17 --- (In reply to comment #3) If one is trying to adhere to a Standard then use -std=. -pedantic simply should not be used with gfortran. As for documenting this, see arith.c, the PR's listed there and the mailing list.

[Bug fortran/43310] -pedantic errors on valid code involving PARAMETERs initialized to intrinsic function result

2010-03-09 Thread kargl at gcc dot gnu dot org
--- Comment #5 from kargl at gcc dot gnu dot org 2010-03-10 03:15 --- (In reply to comment #4) Not all valid FORTRAN 95 programs will compile properly when using this option. If you want to ensure compliance with one of the FORTRAN standards, please see the -std= option. The