Skip to content

Some examples in the documentation print logical values using character formatting, so wrong values are printed. #516

Open
@ecasglez

Description

@ecasglez

Describe the issue
I have identified the following examples in the documentation that exhibit this behaviour:

In stdlib_stringlist_type module:

In stdlib_strings module:

For example, the program demo_inequality_operator contains the following line:

print'(a)', stringlist /= ["#4", "#3", "#1"]

When I run that example the code prints wierd characters or nothing.

Expected behaviour

If I change the previous example to:

print'(l)', stringlist /= ["#4", "#3", "#1"]

or

print *, stringlist /= ["#4", "#3", "#1"]

T or F is printed.

Technical Details
Gfortran 10.2. stdlib 323f700

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions