awarzynski added a comment. In D103612#2827444 <https://reviews.llvm.org/D103612#2827444>, @klausler wrote:
>> The default behaviour is to always decorate unparsed typed expression with >> e.g. their KIND. The new flag can be used to turn this off, so that the >> generated output uses valid Fortran syntax and can be fed to another Fortran >> compiler. > > The output of Expr<T>::AsFortran() should be valid Fortran, and it's a bug if > it's not. This is the output that I get from the unparser (input file: flang/test/Driver/unparse-typed-exprs.f95): PROGRAM test_allocated INTEGER :: i = 13_4 REAL(KIND=2_4), ALLOCATABLE :: x(:) IF (.NOT.allocated(x)) ALLOCATE(x(i)) END PROGRAM test_allocated This is not valid, is it? Or am I missing something? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103612/new/ https://reviews.llvm.org/D103612 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits