public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/61275] New: Invalid initialization expression for ALLOCATABLE component in structure constructor at (1)
@ 2014-05-21 16:05 antony at cosmologist dot info
  2014-05-23 15:09 ` [Bug fortran/61275] " dominiq at lps dot ens.fr
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: antony at cosmologist dot info @ 2014-05-21 16:05 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61275
           Summary: Invalid initialization expression for ALLOCATABLE
                    component in structure constructor at (1)
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antony at cosmologist dot info

module A

    Type T
    character(LEN=:), allocatable :: S
    end type
    Type(T) :: TestObj = T('string')

    contains

    end module


Trunk gives
Error: Invalid initialization expression for ALLOCATABLE component 's' in
structure constructor at (1)

Note similarity to 
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51976#c12
which was apparently working at some point. (but great to see deferred-length
character components of derived types now implemented).


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-04-17 12:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-21 16:05 [Bug fortran/61275] New: Invalid initialization expression for ALLOCATABLE component in structure constructor at (1) antony at cosmologist dot info
2014-05-23 15:09 ` [Bug fortran/61275] " dominiq at lps dot ens.fr
2015-01-17 18:09 ` pault at gcc dot gnu.org
2015-01-23 11:26 ` vehre at gcc dot gnu.org
2015-03-20 11:58 ` dominiq at lps dot ens.fr
2015-03-20 12:19 ` vehre at gcc dot gnu.org
2015-03-20 13:13 ` antony at cosmologist dot info
2015-03-20 13:51 ` vehre at gcc dot gnu.org
2015-03-20 14:57 ` dominiq at lps dot ens.fr
2015-04-17 12:46 ` dominiq at lps dot ens.fr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).