public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45290]  New: [F08] pointer initialization
@ 2010-08-15 19:46 janus at gcc dot gnu dot org
  2010-08-16  7:35 ` [Bug fortran/45290] " domob at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 20+ messages in thread
From: janus at gcc dot gnu dot org @ 2010-08-15 19:46 UTC (permalink / raw)
  To: gcc-bugs

John Reid, The new features of Fortran 2008, chapter 5.5:

A pointer may be initially associated with a target:

type (entry), target :: bottom
type (entry), pointer :: top => bottom

*****

Currently gfortran responds with:

type (entry), pointer :: top => bottom
                               1
Error: Pointer initialization requires a NULL() at (1)

*****

A look at the current draft of F08 seems to indicate that this is allowed for
any kind of pointer: Data pointers and data pointer components as well as
procedure pointers and procedure pointer components. See:

R442 component-initialization
R443 initial-data-target
C460

R505 initialization
C511

R1216 proc-pointer-init
R1217 initial-proc-target

Note: For procedure-pointer components I was not able to find any specific
reference to non-NULL default initialization. However, chapter 4.5.4.6
("Default initialization for components") explicitly mentions the possibility
of having an initial-proc-target for a PPC.


-- 
           Summary: [F08] pointer initialization
           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: janus at gcc dot gnu dot org
OtherBugsDependingO 39627
             nThis:


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


^ permalink raw reply	[flat|nested] 20+ messages in thread
[parent not found: <bug-45290-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2015-01-16 12:54 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-15 19:46 [Bug fortran/45290] New: [F08] pointer initialization janus at gcc dot gnu dot org
2010-08-16  7:35 ` [Bug fortran/45290] " domob at gcc dot gnu dot org
2010-08-16  9:17 ` burnus at gcc dot gnu dot org
2010-08-16  9:37 ` janus at gcc dot gnu dot org
2010-08-18 22:32 ` janus at gcc dot gnu dot org
2010-08-18 22:37 ` janus at gcc dot gnu dot org
2010-08-19 11:11 ` janus at gcc dot gnu dot org
2010-08-21 14:51 ` janus at gcc dot gnu dot org
2010-08-21 16:21 ` janus at gcc dot gnu dot org
2010-09-21 12:38 ` burnus at gcc dot gnu dot org
2010-09-21 13:52 ` burnus at gcc dot gnu dot org
     [not found] <bug-45290-4@http.gcc.gnu.org/bugzilla/>
2011-02-06 17:51 ` janus at gcc dot gnu.org
2011-02-08 23:03 ` janus at gcc dot gnu.org
2011-02-08 23:09 ` janus at gcc dot gnu.org
2011-10-18  7:25 ` burnus at gcc dot gnu.org
2014-03-15 11:12 ` dominiq at lps dot ens.fr
2014-03-15 15:39 ` janus at gcc dot gnu.org
2014-03-15 16:54 ` janus at gcc dot gnu.org
2015-01-16 12:50 ` janus at gcc dot gnu.org
2015-01-16 12:54 ` janus at gcc dot gnu.org

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).