This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/47789] [OOP] Structure constructor of type extending DT with no components


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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org
      Known to fail|                            |4.4.6, 4.5.3, 4.6.0

--- Comment #2 from kargl at gcc dot gnu.org 2011-02-18 15:14:15 UTC ---
(In reply to comment #1)
> Confirmed. Reduced test case:
> 
> type:: one
> end type
> 
> type, extends(one) :: two
>     real :: a
> endtype
> 
> type(two) :: wo = two(6.7)
> 
> end

Note, the code compiles if one uses the keyword
form for the constructor.  That is, 

type(two) :: wo = two(a = 6.7)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]