public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/29962]  New: Initialization expressions checking in gfc_intrinsic_func_interface
@ 2006-11-23 20:35 burnus at gcc dot gnu dot org
  2006-11-23 21:10 ` [Bug fortran/29962] " burnus at gcc dot gnu dot org
                   ` (20 more replies)
  0 siblings, 21 replies; 23+ messages in thread
From: burnus at gcc dot gnu dot org @ 2006-11-23 20:35 UTC (permalink / raw)
  To: gcc-bugs

We should only allow
a) elemental functions
b) we currently check gfc_init_expr_extensions():
  /* FIXME: This should be moved into the intrinsic definitions.  */
  static const char * const init_expr_extensions[] = {
    "digits", "epsilon", "huge", "kind", "maxexponent", "minexponent",
    "precision", "present", "radix", "range", "selected_real_kind",
    "tiny", NULL
  };
I'm neither sure whether this is correct nor whether this is complete.

See: "7.1.7 Initialization expression" in Fortran 2003 and
"7.1.6.1 Constant expression" in Fortran 95.

There is at least the following difference between the standards:
F2003: [Allowed is] "A reference to an elemental standard intrinsic function,
where each argument is an initialization expression"

F95:
"An initialization expression is a constant expression in which the
exponentiation operation is
permitted only with an integer power, and each primary is
[...]
(4) An elemental intrinsic function reference of type integer or character
where each argument is an initialization expression of type integer or
character"


-- 
           Summary: Initialization expressions checking in
                    gfc_intrinsic_func_interface
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: enhancement
          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=29962


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

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

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-23 20:35 [Bug fortran/29962] New: Initialization expressions checking in gfc_intrinsic_func_interface burnus at gcc dot gnu dot org
2006-11-23 21:10 ` [Bug fortran/29962] " burnus at gcc dot gnu dot org
2006-11-23 21:59 ` burnus at gcc dot gnu dot org
2006-11-23 23:52 ` burnus at gcc dot gnu dot org
2006-11-24  7:20 ` burnus at gcc dot gnu dot org
2006-11-27 10:15 ` patchapp at dberlin dot org
2006-12-04 20:03 ` burnus at gcc dot gnu dot org
2007-03-06  7:57 ` fxcoudert at gcc dot gnu dot org
2007-06-23 16:13 ` burnus at gcc dot gnu dot org
2007-07-22 16:32 ` dfranke at gcc dot gnu dot org
2007-07-24 13:32 ` burnus at gcc dot gnu dot org
2007-07-24 18:41 ` [Bug fortran/29962] Initialization expressions dfranke at gcc dot gnu dot org
2007-10-05 19:52 ` tobi at gcc dot gnu dot org
2009-03-23 19:57 ` dfranke at gcc dot gnu dot org
2009-03-23 20:04 ` dfranke at gcc dot gnu dot org
2009-03-31 20:02 ` dfranke at gcc dot gnu dot org
2009-04-05 20:40 ` dfranke at gcc dot gnu dot org
2009-04-10 14:04 ` dfranke at gcc dot gnu dot org
2009-06-07 11:53 ` burnus at gcc dot gnu dot org
2009-06-07 16:35 ` burnus at gcc dot gnu dot org
2009-06-07 17:34 ` burnus at gcc dot gnu dot org
2009-12-04 22:07 ` dfranke at gcc dot gnu dot org
     [not found] <bug-29962-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).