public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/42912] New: BLOCK: C1278 - wrongly accepts SAVE in pure procedure
@ 2010-01-31 11:20 burnus at gcc dot gnu dot org
2010-01-31 12:21 ` [Bug fortran/42912] " domob at gcc dot gnu dot org
2010-02-28 15:08 ` domob at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-01-31 11:20 UTC (permalink / raw)
To: gcc-bugs
C1278 A local variable of a pure subprogram, or of a BLOCK construct within a
pure subprogram, shall not have the SAVE attribute.
However, the following is accepted:
pure subroutine foo()
block
integer, save :: i
integer :: j = 5
end block
end subroutine foo
Expected:
integer, save :: i
1
Error: SAVE attribute at (1) cannot be specified in a PURE procedure
integer :: j = 5
1
Error: Initialization of variable at (1) is not allowed in a PURE procedure
--
Summary: BLOCK: C1278 - wrongly accepts SAVE in pure procedure
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42912
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-02-28 15:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-31 11:20 [Bug fortran/42912] New: BLOCK: C1278 - wrongly accepts SAVE in pure procedure burnus at gcc dot gnu dot org
2010-01-31 12:21 ` [Bug fortran/42912] " domob at gcc dot gnu dot org
2010-02-28 15:08 ` domob at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).