Found at
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/5c7eef953c5653ff

Assuming the definition,
   type, abstract :: pointGen ! ...
   end type pointGen

   type, extends( pointGen) :: point2d
      real :: x
      real :: y
   end type point2d

the structure constructor will fail with:
 myPoint = point2d(2.3, 4.2)
                      1
Error: Invalid character in name at (1) 

It works if one uses:
 myPoint = point2d(x=2.3, y=4.2)


-- 
           Summary: [OOP] Valid structure constructor rejected
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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

Reply via email to