Skip to content

Error: Ambiguous interfaces in generic interface 'string_type' for 'new_string_from_logical_lk' at (1) and 'new_string_from_logical_c_bool' at (2) #691

Closed
@barracuda156

Description

@barracuda156

Description

/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_fortran-stdlib/fortran-stdlib/work/build/src/stdlib_string_type.f90:74:8:

   74 |         elemental module function new_string_from_logical_lk(val) result(new)
      |        1
......
   78 |         elemental module function new_string_from_logical_c_bool(val) result(new)
      |        2
Error: Ambiguous interfaces in generic interface 'string_type' for 'new_string_from_logical_lk' at (1) and 'new_string_from_logical_c_bool' at (2)
make[2]: *** [src/CMakeFiles/fortran_stdlib.dir/stdlib_string_type.f90.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Expected Behaviour

Types should be consistent or at least not lead to build failure :)

Version of stdlib

0.2.1

Platform and Architecture

macOS 10.6.8/ppc

Additional Information

gcc 12.2.0
cmake 3.25.2
python 3.11.1
py311-fypp 3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions