flang
flang copied to clipboard
Flang is a Fortran language front-end designed for integration with LLVM.
This tests compiles fine with Flang: ``` Program test Implicit None Integer,Allocatable :: fail(:) Integer y(Size(fail)) End Program ``` But fail is not permitted in a specification expression.
A pure procedure must not specify that any entity is VOLATILE. In addition, it must not contain any references to data that is VOLATILE. This minimal test runs all right...
After patching the master branch with #1443, the [libmbd](https://github.com/libmbd/libmbd.git) build now fails here: ``` [ 25%] Building Fortran object src/CMakeFiles/mbd.dir/mbd_c_api.F90.o F90-S-0000-Internal compiler error. unexpected ast type in initialization expr 3208...
flang should use the last specified option when both these options are used. e.g Mbaskslash should be used when "-Mnobackslash -Mbackslash " arguments are specified.
The following sample code exposes the problem (this might actually have the same cause as the segfault of Issue #851. However, even if the polymorphic assignment below is replaced by...
I have accidentally used together the options "-mcmodel=medium -fpic" on a code using complex arithmetic ``` program main complex alpha,beta read(5,*) alpha,beta IF ((ALPHA.EQ.CMPLX(0.,0.)).OR. X (BETA.EQ.CMPLX(1.,1.))) write(6,*) 'read zero and...
This is related to Issue #873. This, too, is invalid code that should be rejected by the compiler. ``` program test type, abstract :: basic end type basic contains subroutine...
Compiler segmentation fault when using host OpenMP reduction and fopenmp-targets=nvptx64-nvidia-cuda
The compiler segfaults when compiling for the GPU. ``` $ flang -fopenmp -fopenmp-targets=nvptx64-nvidia-cuda bug2.F90 -o bug2 && ./bug2 clang-7: error: unable to execute command: Segmentation fault clang-7: error: unable to...
A reproducible testcase for issue #1413 is added.