public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/40571]  New: F2008: ISO_FORTRAN_ENV: Missing constants
@ 2009-06-27 19:43 burnus at gcc dot gnu dot org
  2009-07-05  9:16 ` [Bug fortran/40571] " fxcoudert at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-06-27 19:43 UTC (permalink / raw)
  To: gcc-bugs

For the missing inquiry function, see PR 40569.

Do not forget to update intrinsic.texi!

Missing are the following integer arrays/scalars:


CHARACTER_KINDS
  [ 1, 4 ]

INTEGER_KINDS
  [ 1, 2, 4 ...]

LOGICAL_KINDS
  [ 1, 2, 4, ...]

REAL_KINDS
  [ 4, 8, ... ]


IO_INQUIRE_INTERNAL_UNIT
  some positive number which cannot appear for any
  other error as value for IOSTAT=

STAT_STOPPED_IMAGE
  positive, /= IO_INQUIRE_INTERNAL_UNIT
  Different from other STAT= values which appear for
  STAT= in ALLOCATE/DEALLOCATE and in
  SYNC ALL/IMAGES/MEMORY.


-- 
           Summary: F2008: ISO_FORTRAN_ENV: Missing constants
           Product: gcc
           Version: 4.5.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=40571


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

* [Bug fortran/40571] F2008: ISO_FORTRAN_ENV: Missing constants
  2009-06-27 19:43 [Bug fortran/40571] New: F2008: ISO_FORTRAN_ENV: Missing constants burnus at gcc dot gnu dot org
  2009-07-05  9:16 ` [Bug fortran/40571] " fxcoudert at gcc dot gnu dot org
@ 2009-07-05  9:16 ` fxcoudert at gcc dot gnu dot org
  2010-07-07 10:09 ` burnus at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-07-05  9:16 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


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


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

* [Bug fortran/40571] F2008: ISO_FORTRAN_ENV: Missing constants
  2009-06-27 19:43 [Bug fortran/40571] New: F2008: ISO_FORTRAN_ENV: Missing constants burnus at gcc dot gnu dot org
@ 2009-07-05  9:16 ` fxcoudert at gcc dot gnu dot org
  2009-07-05  9:16 ` fxcoudert at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-07-05  9:16 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |39627
              nThis|                            |
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-07-05 09:16:10
               date|                            |


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


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

* [Bug fortran/40571] F2008: ISO_FORTRAN_ENV: Missing constants
  2009-06-27 19:43 [Bug fortran/40571] New: F2008: ISO_FORTRAN_ENV: Missing constants burnus at gcc dot gnu dot org
  2009-07-05  9:16 ` [Bug fortran/40571] " fxcoudert at gcc dot gnu dot org
  2009-07-05  9:16 ` fxcoudert at gcc dot gnu dot org
@ 2010-07-07 10:09 ` burnus at gcc dot gnu dot org
  2010-07-07 15:20 ` burnus at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-07-07 10:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from burnus at gcc dot gnu dot org  2010-07-07 10:09 -------
Created an attachment (id=21122)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21122&action=view)
Draft patch for kinds

Some constants such as GFC_STAT_STOPPED_IMAGE have been added as part of the
coarray work. Besides the compiler_*() functions (PR 40569), the coarray LOCK_*
types are missing.

To this patch: It adds support for the *_kinds parameter arrays.
TODO:

a) It does not fully work, while the following is OK
   print *, (real_kinds), shape(real_kinds)
without (), it gives a linker error:
   print *, real_kinds
namely: undefined reference to `__iso_fortran_env_MOD_integer_kinds'

b) The .texi changes are missing


-- 


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


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

* [Bug fortran/40571] F2008: ISO_FORTRAN_ENV: Missing constants
  2009-06-27 19:43 [Bug fortran/40571] New: F2008: ISO_FORTRAN_ENV: Missing constants burnus at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-07-07 10:09 ` burnus at gcc dot gnu dot org
@ 2010-07-07 15:20 ` burnus at gcc dot gnu dot org
  2010-07-07 15:24 ` burnus at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-07-07 15:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from burnus at gcc dot gnu dot org  2010-07-07 15:20 -------
Created an attachment (id=21126)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21126&action=view)
Test case


-- 


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


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

* [Bug fortran/40571] F2008: ISO_FORTRAN_ENV: Missing constants
  2009-06-27 19:43 [Bug fortran/40571] New: F2008: ISO_FORTRAN_ENV: Missing constants burnus at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-07-07 15:20 ` burnus at gcc dot gnu dot org
@ 2010-07-07 15:24 ` burnus at gcc dot gnu dot org
  2010-09-06 14:53 ` burnus at gcc dot gnu dot org
  2010-09-06 17:55 ` burnus at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-07-07 15:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from burnus at gcc dot gnu dot org  2010-07-07 15:24 -------
See PR 44856 for the reason why it fails for some expressions.


-- 


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


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

* [Bug fortran/40571] F2008: ISO_FORTRAN_ENV: Missing constants
  2009-06-27 19:43 [Bug fortran/40571] New: F2008: ISO_FORTRAN_ENV: Missing constants burnus at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-07-07 15:24 ` burnus at gcc dot gnu dot org
@ 2010-09-06 14:53 ` burnus at gcc dot gnu dot org
  2010-09-06 17:55 ` burnus at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-09-06 14:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from burnus at gcc dot gnu dot org  2010-09-06 14:52 -------
Created an attachment (id=21712)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21712&action=view)
New draft patch

New draft patch.

New: Documentation added; "REAL_KINDS" and "REAL_KINDS(1)" works now.

TODO
- The test case in the file, i.e. "REAL(REAL_KINDS(1))" fails with "Error:
Constant expression required"
- Include attachment 21126 as test case


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #21122|0                           |1
        is obsolete|                            |


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


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

* [Bug fortran/40571] F2008: ISO_FORTRAN_ENV: Missing constants
  2009-06-27 19:43 [Bug fortran/40571] New: F2008: ISO_FORTRAN_ENV: Missing constants burnus at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2010-09-06 14:53 ` burnus at gcc dot gnu dot org
@ 2010-09-06 17:55 ` burnus at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-09-06 17:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from burnus at gcc dot gnu dot org  2010-09-06 17:55 -------
More failures:

use iso_fortran_env
integer :: i
print *, shape(real_kinds(1))  ! should be rejected (scalar)
i = real_kinds(1)              ! ICE
end

Thus, the FE has problems if one takes a REF of an EXPR_ARRAY, i.e. the shape
does not get updated.


-- 


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


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

end of thread, other threads:[~2010-09-06 17:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-27 19:43 [Bug fortran/40571] New: F2008: ISO_FORTRAN_ENV: Missing constants burnus at gcc dot gnu dot org
2009-07-05  9:16 ` [Bug fortran/40571] " fxcoudert at gcc dot gnu dot org
2009-07-05  9:16 ` fxcoudert at gcc dot gnu dot org
2010-07-07 10:09 ` burnus at gcc dot gnu dot org
2010-07-07 15:20 ` burnus at gcc dot gnu dot org
2010-07-07 15:24 ` burnus at gcc dot gnu dot org
2010-09-06 14:53 ` burnus at gcc dot gnu dot org
2010-09-06 17:55 ` burnus at gcc dot gnu dot 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).