Skip to content

Compilation failure with gcc-15, gfortran-15 and 0.7.2 #308

@amckinstry

Description

@amckinstry

Hi,

Compilation of 0.7.2 fails for me with:

[ 10%]             prif_private_s.F90  done.

././src/caffeine/prif_private_s.F90:274:13:

  274 |       logical(PRIF_ATOMIC_LOGICAL_KIND), intent(out) :: result
      |             1
Warning: C kind type parameter is for type INTEGER but type at (1) is LOGICAL
././src/caffeine/prif_private_s.F90:275:13:

  275 |       logical(PRIF_ATOMIC_LOGICAL_KIND), intent(in), value :: operand1
      |             1
Warning: C kind type parameter is for type INTEGER but type at (1) is LOGICAL
././src/caffeine/prif_private_s.F90:276:13:

  276 |       logical(PRIF_ATOMIC_LOGICAL_KIND), intent(in), value :: operand2
      |             1
Warning: C kind type parameter is for type INTEGER but type at (1) is LOGICAL
././src/caffeine/prif_private_s.F90:496:46:

I thought logical couldn't be parameterized with (kind=) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions