Skip to content

Build errors with flang-new 19.1.1 #46

Description

@bonachea

Using Damian's build of flang-new 19.1.1 on Perlmutter:

flang-new version 19.1.1 (git@github.com:llvm/llvm-project d401987fe349a87c53fe25829215b080b70c0c1a)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /global/cfs/cdirs/m2878/flang/llvm-project/build/bin
Build config: +assertions

I see the following build errors on main @ 652d82f :

error: Semantic errors in example/derived-type_diagnostic.F90
./example/derived-type_diagnostic.F90:47:5: error: Left-hand side of assignment is not definable
      self_defined = self%defined_
      ^^^^^^^^^^^^
./example/derived-type_diagnostic.F90:47:5: because: 'self_defined' is externally visible via 'self_defined' and not definable in a pure subprogram
      self_defined = self%defined_
      ^^^^^^^^^^^^
./example/derived-type_diagnostic.F90:31:15: Declaration of 'self_defined'
        logical self_defined
                ^^^^^^^^^^^^
./example/derived-type_diagnostic.F90:109:11: error: Internal file variable 'untrimmed_string' is not definable
      write(untrimmed_string,*) self%stuff_%z()
            ^^^^^^^^^^^^^^^^
./example/derived-type_diagnostic.F90:109:11: because: 'untrimmed_string' is externally visible via 'untrimmed_string' and not definable in a pure subprogram
      write(untrimmed_string,*) self%stuff_%z()
            ^^^^^^^^^^^^^^^^
./example/derived-type_diagnostic.F90:108:28: Declaration of 'untrimmed_string'
      character(len=max_len) untrimmed_string
                             ^^^^^^^^^^^^^^^^
./example/derived-type_diagnostic.F90:110:5: error: Left-hand side of assignment is not definable
      character_self = trim(adjustl(untrimmed_string))
      ^^^^^^^^^^^^^^
./example/derived-type_diagnostic.F90:110:5: because: 'character_self' is externally visible via 'character_self' and not definable in a pure subprogram
      character_self = trim(adjustl(untrimmed_string))
      ^^^^^^^^^^^^^^
./example/derived-type_diagnostic.F90:88:40: Declaration of 'character_self'
        character(len=:), allocatable :: character_self
                                         ^^^^^^^^^^^^^^
<ERROR> Compilation failed for object " example_derived-type_diagnostic.F90.o "
<ERROR> stopping due to failed compilation

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions