https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68440

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-11-19
     Ever confirmed|0                           |1

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Compiling the first two tests with 4.8 up to trunk gives an ICE. Compiling the
third and fourth tests with 4.8 up to 5.2 gives and ICE, but with trunk (6.0)
the third test compiles without error and the fourth test gives the following
error

pr68440_3.f90:4:16:

    class(t) :: x = t()
                1

Error: CLASS variable 'x' at (1) must be dummy, allocatable or pointer

The last two tests give the reported errors with 4.8 up to trunk, except the
last one when compiled with 4.8:

   x = t()
   1
Error: Variable must not be polymorphic in intrinsic assignment at (1) - check
that there is a matching specific subroutine for '=' operator

Reply via email to