PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / used_types_24.f90
blob39eed6f2f01a0b2916d62d92b4f610cc2d5898d8
1 ! { dg-do compile }
2 ! Tests the fix for PR37794 a regression where a bit of redundant code caused an ICE.
4 ! Contributed by Jonathan Hogg <J.Hogg@rl.ac.uk>
6 module m1
7 implicit none
9 type of01_data_private
10 real :: foo
11 end type of01_data_private
13 type of01_data
14 type (of01_data_private) :: private
15 end type of01_data
16 end module m1
18 module m2
19 implicit none
21 type of01_data_private
22 integer :: youngest
23 end type of01_data_private
24 end module m2
26 module test_mod
27 use m1, of01_rdata => of01_data
28 use m2, of01_idata => of01_data ! { dg-error "not found in module" }
30 implicit none
31 end module test_mod