[Bug fortran/40571] F2008: ISO_FORTRAN_ENV: Missing constants

2010-09-06 Thread burnus at gcc dot gnu dot org


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



[Bug fortran/40571] F2008: ISO_FORTRAN_ENV: Missing constants

2010-09-06 Thread burnus at gcc dot gnu dot org


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



[Bug fortran/40571] F2008: ISO_FORTRAN_ENV: Missing constants

2010-07-07 Thread burnus at gcc dot gnu dot org


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



[Bug fortran/40571] F2008: ISO_FORTRAN_ENV: Missing constants

2010-07-07 Thread burnus at gcc dot gnu dot org


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



[Bug fortran/40571] F2008: ISO_FORTRAN_ENV: Missing constants

2010-07-07 Thread burnus at gcc dot gnu dot org


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



[Bug fortran/40571] F2008: ISO_FORTRAN_ENV: Missing constants

2009-07-05 Thread fxcoudert at gcc dot gnu dot org


-- 

fxcoudert at gcc dot gnu dot org changed:

   What|Removed |Added

   Severity|normal  |enhancement


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



[Bug fortran/40571] F2008: ISO_FORTRAN_ENV: Missing constants

2009-07-05 Thread fxcoudert at gcc dot gnu dot org


-- 

fxcoudert at gcc dot gnu dot org changed:

   What|Removed |Added

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


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