This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47789] [OOP] Structure constructor of type extending DT with no components
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 18 Feb 2011 15:14:18 +0000
- Subject: [Bug fortran/47789] [OOP] Structure constructor of type extending DT with no components
- Auto-submitted: auto-generated
- References: <bug-47789-4@http.gcc.gnu.org/bugzilla/>
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)