public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/38205]  New: Tranformational function SUM rejected in initialization expressions
@ 2008-11-20 22:57 burnus at gcc dot gnu dot org
  2008-11-22 21:43 ` [Bug fortran/38205] " burnus at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-11-20 22:57 UTC (permalink / raw)
  To: gcc-bugs

The following program fails with:

Error: transformational intrinsic 'sum' at (1) is not permitted in an
initialization expression

I think it is valid Fortran 2003 per "7.1.7 Initialization expression":

"(5) A reference to a transformational standard intrinsic function other than
NULL, where each argument is an initialization expression"

Note: Fortran 95 7.1.7.1 the program is invalid (only few transformational
functions are allowed).

Found by James Van Buskirk:
http://groups.google.com/group/comp.lang.fortran/msg/2119be02dcf93517

integer, parameter :: a = sum([1,2])
print *, a
end


-- 
           Summary: Tranformational function SUM rejected in initialization
                    expressions
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          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=38205


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

end of thread, other threads:[~2013-06-25 17:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-20 22:57 [Bug fortran/38205] New: Tranformational function SUM rejected in initialization expressions burnus at gcc dot gnu dot org
2008-11-22 21:43 ` [Bug fortran/38205] " burnus at gcc dot gnu dot org
2008-11-26 12:14 ` mikael at gcc dot gnu dot org
2008-11-26 12:14 ` mikael at gcc dot gnu dot org
2008-11-26 13:51 ` burnus at gcc dot gnu dot org
2008-11-26 16:53 ` burnus at gcc dot gnu dot org
2008-11-26 17:51 ` mikael at gcc dot gnu dot org
2008-12-09 21:54 ` dfranke at gcc dot gnu dot org
2009-03-23 19:57 ` dfranke at gcc dot gnu dot org
     [not found] <bug-38205-4@http.gcc.gnu.org/bugzilla/>
2013-06-25 17:17 ` 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).