------- Comment #4 from burnus at gcc dot gnu dot org  2010-06-01 07:53 -------
REOPEN to address the issue pointed out by Dominique in comment 1:

> (2) the arguments of selected_real_kind should be scalar integer.

s/ should / shall /:

P (optional) shall be an integer scalar.
R (optional) shall be an integer scalar.
RADIX (optional) shall be an integer scalar.

That's currently not diagnosed while g95, NAG, ifort, openf95, and pathf95
print an ERROR.

 * * *

I changed the summary. Vittorio, it helps to repeat the issue in the bug
description as the summary can be changed. For completeness, the original issue
was that GCC 4.4 and 4.5 had an ICE:
  test.f90:5:0: internal compiler error: Segmentation fault
or
  gfortran segmentation violation in gfc_conv_scalarized_array_ref
as the initial summary was.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
           Keywords|ice-on-valid-code           |accepts-invalid
      Known to fail|4.4.4                       |
      Known to work|4.6.0                       |
         Resolution|FIXED                       |
            Summary|gfortran segmentation       |SELECT_REAL_KIND: Wrongly
                   |violation in                |accepts non-scalar arguments
                   |gfc_conv_scalarized_array_re|
                   |f                           |


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

Reply via email to