From: Tobias Burnus Date: Wed, 12 Nov 2008 18:38:08 +0000 (+0100) Subject: re PR fortran/38065 (private/public confusion with a contained function) X-Git-Tag: releases/gcc-4.4.0~1706 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6af97bf4448bde676600a42fe1e3e292e2f9a55d;p=thirdparty%2Fgcc.git re PR fortran/38065 (private/public confusion with a contained function) 2008-11-12 Tobias Burnus PR fortran/38065 PR fortran/38094 * gfortran.dg/private_type_4.f90: Add -std=f95 option. From-SVN: r141798 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7d93db1fe5bf..30764342dd16 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-11-12 Tobias Burnus + + PR fortran/38065 + PR fortran/38094 + * gfortran.dg/private_type_4.f90: Add -std=f95 option. + 2008-11-12 Andreas Krebbel * gcc.target/s390/frame-addr1.c: New testcase. diff --git a/gcc/testsuite/gfortran.dg/private_type_4.f90 b/gcc/testsuite/gfortran.dg/private_type_4.f90 index 9ff39b267cdd..29802789b283 100644 --- a/gcc/testsuite/gfortran.dg/private_type_4.f90 +++ b/gcc/testsuite/gfortran.dg/private_type_4.f90 @@ -1,5 +1,8 @@ ! { dg-do compile } +! { dg-options "-std=f95" } ! PR 25093: Check that a PUBLIC function can't be of PRIVATE type +! in Fortran 95; in Fortran 2003 it is allowed (cf. PR fortran/38065) +! module m1 type :: t1