Bug 43019 - [F2008] BLOCK (block_6.f08): Scope of implicitly typed variables
Summary: [F2008] BLOCK (block_6.f08): Scope of implicitly typed variables
Status: RESOLVED DUPLICATE of bug 39626
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: wrong-code
Depends on:
Blocks:
 
Reported: 2010-02-10 16:14 UTC by Tobias Burnus
Modified: 2010-02-10 18:26 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Burnus 2010-02-10 16:14:35 UTC
BLOCK is xfailed and contains:


! Check for correct scope of variables that are implicit typed within a BLOCK.
! This is not yet implemented, thus XFAIL'ed the test.

PROGRAM main
  IMPLICIT INTEGER(a-z)

  BLOCK
    ! a gets implicitly typed, but scope should not be limited to BLOCK.
    a = 42
  END BLOCK

  ! Here, we should still access the same a that was set above.
  IF (a /= 42) CALL abort ()
END PROGRAM main
Comment 1 Daniel Kraft 2010-02-10 18:26:02 UTC

*** This bug has been marked as a duplicate of 39626 ***
Comment 2 Daniel Kraft 2010-02-10 18:26:55 UTC
This is part of what I mention in comment 6 of PR 39626, will work on it there.