gcc/testsuite/gfortran.dg/common_27.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! PR fortran/108453 - a use associated variable cannot occur in COMMON |
| 3 | ! Contributed by G.Steinmetz |
| 4 | |
| 5 | module m |
| 6 | type t |
| 7 | end type |
| 8 | real :: r |
| 9 | end |
| 10 | program p |
| 11 | use m, only: t, r |
| 12 | common t ! { dg-error "USE associated from module" } |
| 13 | common /cm/ r ! { dg-error "USE associated from module" } |
| 14 | end |