Skip to content

weird behaviour on x86 (OpenBSD) #12

@semarie

Description

@semarie

On OpenBSD x86 architecture, I have a weird behaviour when using M_CLI2.

I first noticed it while build fpm on x86, and next reduced the example code to the following:

program show
  use M_CLI2, only : set_args, lget, rget, sget, igets
  implicit none
  call set_args('-l F')
  print *, "lget", lget('l')
end program show

Please note, that there is no problem with real and rget (I don't specialy tested others types).

On x86_64, the program seems to work well:

$ ./test                                                                
 lget F
$ ./test -l
 lget T
$ ./test -l xxx
 lget T
$ ./test -h                                                                  
./test --version F
 --usage F
 --help F
 --version F -l F

On x86, I have the following behaviour:

$ ./test      
 lget*get_anyarray_l* expected one value found 3
$ ./test -l
 lget T
$ ./test -l xxx
 lget*get_anyarray_l* bad logical expression for l=XXX
 F
$ ./test -h  
 lget T

I tested with both gfortan 8.4.0 and gfortran 11.2.0 (both available on OpenBSD) with the same result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions