[Bug fortran/34260] present returns wrong value of optional variables

2007-11-28 Thread vahtras at kth dot se
--- Comment #2 from vahtras at kth dot se 2007-11-28 13:22 --- Subject: Re: present returns wrong value of optional variables On Wed, 2007-11-28 at 10:33 +, terry at chem dot gu dot se wrote: > Shouldn't this error be detected by the compiler at some stage of the > compil

[Bug fortran/34260] present returns wrong value of optional variables

2007-11-28 Thread terry at chem dot gu dot se
--- Comment #1 from terry at chem dot gu dot se 2007-11-28 10:33 --- > gfortran behaves correctly with an explicit INTERFACE, but that > should not be required (as far as I know) Explicit interfaces are required for procedures with optional arguments. SUB is still external to MAIN, so