The code:

      TYPE POINT
        REAL :: X 
      ENDTYPE
      TYPE(POINT) :: P != POINT(1.+X)
      DATA P / POINT(1.+X) /
      END

[phi...@dune tmp]$ gfortran -c t.F 
t.F: In function ‘MAIN__’:
t.F:1: erreur interne du compilateur: dans gfc_conv_constant, à
fortran/trans-const.c:348
Veuillez soumettre un rapport complet d'anomalies,
avec le source pré-traité si nécessaire.
Consultez <URL:http://bugzilla.redhat.com/bugzilla> pour plus de détail.

It breaks both gfortran 4.1.2 and 4.5.0.


-- 
           Summary: Problem with data statement involving structure
                    constructors
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: philippe dot marguinaud at meteo dot fr
 GCC build triplet: x86_64-redhat-linux
  GCC host triplet: x86_64-redhat-linux
GCC target triplet: x86_64-redhat-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40402

Reply via email to