--- Comment #8 from tobi at gcc dot gnu dot org 2006-09-13 16:11 ---
This is another variation of the theme in 26227
*** This bug has been marked as a duplicate of 26227 ***
--
tobi at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #7 from paul dot richard dot thomas at cea dot fr 2006-08-04
07:50 ---
Just to reinforce the above, I should remark that an explicit interface in the
main program makes the code behave correctly (see below).
The standard requires that references to a procedure with an
--
fxcoudert at gcc dot gnu dot org changed:
What|Removed |Added
Severity|critical|normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28443
--- Comment #6 from pinskia at gcc dot gnu dot org 2006-07-22 08:32 ---
PR 26227 is the bug about accepting invalid code with different types and
numbers of dummy arguments.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #3 from matthias dot langer at zamg dot ac dot at 2006-07-21
08:11 ---
Created an attachment (id=11917)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11917action=view)
comment
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28443
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-07-21 19:31 ---
Yes, this is most likely one of the accepts invalid bugs where gfortran does
not check the types of functions arguments already implicatedly defined.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28443
--- Comment #5 from steven at gcc dot gnu dot org 2006-07-21 23:34 ---
Lahey agrees that this is invalid code:
1program test_string_present
2
3call test_present(1, foo)
4call test_present(2)
5
--- Comment #1 from steven at gcc dot gnu dot org 2006-07-20 19:53 ---
Confirmed.
--
steven at gcc dot gnu dot org changed:
What|Removed |Added
Severity|normal
--- Comment #2 from steven at gcc dot gnu dot org 2006-07-20 21:17 ---
From the tree dumps, it would appear we totally mis-handle omitted arguments:
;; Function MAIN__ (MAIN__)
MAIN__ ()
{
bb 2:
_gfortran_set_std (70, 127, 0);
test_present (C.1239, C.1240);
test_present