2011-12-11 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / typebound_assignment_3.f03
blob2001589a9ca376c8516e56f32e3a616d568ca197
1 ! { dg-do compile }
3 ! PR 49074: [OOP] Defined assignment w/ CLASS arrays: Incomplete error message
5 ! Contribute by Jerry DeLisle <jvdelisle@gcc.gnu.org>
7 module foo
9   type bar
10   contains
11     generic :: assignment (=) => assgn
12     procedure :: assgn
13   end type
15 contains
17   elemental subroutine assgn (a, b)
18     class (bar), intent (inout) :: a
19     class (bar), intent (in) :: b
20   end subroutine
22 end module
25   use foo
26   type (bar) :: foobar(2)
27   foobar = bar()           ! There was a not-implemented error here 
28 end
30 ! { dg-final { cleanup-modules "foo" } }