[Bug fortran/31472] gfortran does not detect the illegal use of an access specification in a program, subroutine, or function

2007-04-12 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2007-04-12 09:46 --- Subject: Bug 31472 Author: burnus Date: Thu Apr 12 09:46:30 2007 New Revision: 123735 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=123735 Log: 2007-04-12 Tobias Burnus [EMAIL PROTECTED] PR

[Bug fortran/31472] gfortran does not detect the illegal use of an access specification in a program, subroutine, or function

2007-04-12 Thread burnus at gcc dot gnu dot org
--- Comment #6 from burnus at gcc dot gnu dot org 2007-04-12 09:58 --- Fixed in 4.3. No regression and rejects only valid Fortran 2003 code - no backporting to 4.2 - Fixed. -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/31472] gfortran does not detect the illegal use of an access specification in a program, subroutine, or function

2007-04-11 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2007-04-11 09:44 --- Fortran 95 -- 4.4.1 Derived-type definition TYPE [ [ , access-spec ] :: ] type-name [ private-sequence-stmt ] ! no PUBLIC! access spec PRIVATE statement only in specification part of a module. 5.1 Type

[Bug fortran/31472] gfortran does not detect the illegal use of an access specification in a program, subroutine, or function

2007-04-11 Thread patchapp at dberlin dot org
--- Comment #4 from patchapp at dberlin dot org 2007-04-11 16:05 --- Subject: Bug number PR 31472 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-04/msg00558.html --

[Bug fortran/31472] gfortran does not detect the illegal use of an access specification in a program, subroutine, or function

2007-04-05 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2007-04-05 14:13 --- The patch is wrong since the PRIVATE/PUBLIC statement is also allowed for type: module foo type t private integer, public :: foo end type t end module foo Actually, currently gfortran also invalidly rejects the

[Bug fortran/31472] gfortran does not detect the illegal use of an access specification in a program, subroutine, or function

2007-04-04 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2007-04-04 18:47 --- Accepted. Thanks for the report. We do check for this but only for the PRIVATE/PUBLIC attribute and not for the PUBLIC/PRIVATE statement. Patch: Index: gcc/fortran/decl.c