Hello, @kiranchandramohan
I got the main branch with the git clone command on October 20, 2022. Then I built and compiled and executed the test sets.
The “commit id” of flang I used is as follows.
$ flang-new --version
flang-new version 16.0.0 (https://github.com/llvm/llvm-project.git e0fb01e97b6b7d2fe66b17b36eeb98aa78c6e3bb)
Below is the list of errors again. Fujitsu specific features were excluded. I can’t post the file, so I paste the text.
As a next step, I will check the cause of the test set that failed. Also, I would like to post an issue based on the many advice I received here.
- Compilation Error: "not yet implemented:"
The number at the beginning of each line is the number "Item #".
"**" did not have a corresponding number for "Item #".
** not yet implemented: %VAL() intrinsic for arguments
32 not yet implemented: BOZ
38 not yet implemented: VOLATILE in procedure interface
15 not yet implemented: allocatable component in structure constructor
9 not yet implemented: allocatable components in derived type assignment
** not yet implemented: assignment in a FORALL involving a designator with a POINTER or ALLOCATABLE component part-ref
** not yet implemented: assignment to whole allocatable array inside FORALL
10 not yet implemented: assumed length character allocatable
47 not yet implemented: auto boxing of a ranked expression on RHS for pointer assignment
11 not yet implemented: character array expression temp with dynamic length
46 not yet implemented: complex for this precision
45 not yet implemented: creating an array temp where the element type has allocatable members
27 not yet implemented: deep copy on allocatable members
14 not yet implemented: derived type components with non default lower bounds
** not yet implemented: intrinsic: get_command
** not yet implemented: intrinsic: loc
** not yet implemented: intrinsic: move_alloc
** not yet implemented: intrinsic: pow
** not yet implemented: intrinsic: shape
** not yet implemented: loading polymorphic or assumed rank fir.box
** not yet implemented: lowering derived type components with non default lower bounds
** not yet implemented: no math runtime available for 'abs(!fir.complex<16>)'
** not yet implemented: no math runtime available for 'cos(f128)'
** not yet implemented: no math runtime available for 'exp(f128)'
** not yet implemented: no math runtime available for 'f128 ** i32'
** not yet implemented: no math runtime available for 'floor(f128)'
** not yet implemented: no math runtime available for 'sqrt(f128)'
52 not yet implemented: non elemental user defined array assignment inside FORALL
19 not yet implemented: passing dynamically optional argument to elemental procedures
** not yet implemented: structure constructor
** not yet implemented: support for UNION
** not yet implemented: unhandled array constructor expression
- compile error
undefined reference to `__fc_pow_1',
undefined reference to `__fc_powi_1'
undefined reference to `__mth_i_hypot'
undefined reference to `__mth_i_ipowi'
undefined reference to `ctime_'
undefined reference to `date_'
undefined reference to `derfc_'
undefined reference to `error_'
undefined reference to `etime_'
undefined reference to `fdate_'
undefined reference to `fgetc_'
undefined reference to `free_'
undefined reference to `getcl_'
undefined reference to `getfd_'
undefined reference to `ishc_'
undefined reference to `itime_'
undefined reference to `izext2_'
undefined reference to `jdate_'
undefined reference to `jzext4_'
undefined reference to `lnblnk_'
undefined reference to `ltime_'
undefined reference to `malloc_'
undefined reference to `qabs_',
undefined reference to `qcmplx_'
undefined reference to `qext_'
undefined reference to `qnint_'
undefined reference to `rand_'
undefined reference to `rindex_'
undefined reference to `secnds_'
undefined reference to `system_'
'fir.absent' op result #0 must be any reference or box like, but got 'tuple<!fir.boxproc<() -> ()>, i64>'
'fir.convert' op invalid type conversion
'fir.result' op must be the last operation in the parent block
Actual argument associated with INTENT(IN OUT) dummy argument 'from=' must be definable / call move_alloc(from,to)
Expected 'D' edit descriptor '.d' value / write(1,'(d15)') 1.23456789
Implicit declaration of function 'jfunc02' has a different result type than in previous declaration
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
error: 'a' is already declared in this scoping unit / interface a
error: 'acefcn' was previously called as a function / entry acefcn
error: 'arr' has rank 30, which is greater than the maximum supported rank 15 / integer :: arr(1,30,30,4:4,5:5,6:6,7:7,8:8,9:9,10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30)
error: 'char' is not an unrestricted specific intrinsic procedure / char_intrinsic=char,&
error: 'd1' was already declared as a Cray pointee / pointer(n1,d1)
error: 'ext_sub' is already declared in this scoping unit / subroutine eXt_sUb
error: 'fun' is already declared in this scoping unit / function Fun(a) result(rr)
error: 'i' is not an object that can appear in an expression / integer n(1+i(2)-1)
error: 'ia' cannot backward-extend COMMON block /com/ via EQUIVALENCE with 'i1' / common /com/ ia(10)
error: 'ib' is storage associated with 'ia' by EQUIVALENCE elsewhere in COMMON block /com03/ / common /com03/ ia(10),ib(10),ic(10)
error: 'ifun05' was previously called as a function / subroutine ifun05(i,j)
error: 'int' not found in module 'mod' / use mod,only:iii,int,inta
error: 'int1' is not a known intrinsic procedure / intrinsic int1,jfix
error: 'isub01' is already declared in this scoping unit / entry isub01(ipp)
error: 'jfun1' is already declared in this scoping unit / recursive function Jfun1(ii) result(ians)
error: 'jjj' not found in module 'mod2a' / use mod2a,only:jjj,int,ifunc
error: 'jjja' not found in module 'mod2a' / use mod2a,only:aaa=>aaa,jjja
error: 'l6lxicrqtg0jsrv4prfygwi' not found in module 'xhcw9knwd' / USE XHCW9KNWD,CCNTJOFHGFDX=>L6LXICRQTG0JSRV4PRFYGWI
error: 'n' is not an object that can appear in an expression / dimension a(n(2))
error: 'n1' is not an object that can appear in an expression / integer i1(n1(1))
error: 'sub' is already declared in this scoping unit / subroutine sub(i)
error: 'target=' argument has unacceptable rank 0 / ans=associated(i,null())
error: 'xd' is not an object that can appear in an expression / EQUIVALENCE (FD,XD)
error: /a1/ is not a known STRUCTURE / record /a1/ av
error: A dummy procedure may not be ELEMENTAL / elemental function op ( x )
error: A length specifier cannot be used to declare the non-character entity 'b' / integer*4 b*2/10/
error: A length specifier cannot be used to declare the non-character entity 'i' / integer(4) i*(8),j
error: ALLOCATABLE dummy argument 'k=' must be associated with an ALLOCATABLE actual argument / call sub(fun())
error: Actual argument associated with INTENT(OUT) dummy argument 'p1=' must be definable / call sub01(struct01%struct02(1)%int02)
error: Actual argument for 'a=' has bad type 'INTEGER(4)' / if (ifix(20).ne.20) write(6,*) "NG"
error: Actual argument for 'string=' has bad type 'INTEGER(4)' / integer i1(LEN(n1))
error: Actual argument type 'REAL(4)' is not compatible with dummy argument type 'INTEGER(4)' / call sub01(val(cha(1)//cha(2)//cha(3)))
error: Actual procedure argument has interface incompatible with dummy argument 'proc=': incompatible dummy argument #1: incompatible dummy data object intents / call subr1(fi)
error: An initialized variable in BLOCK DATA must be in a COMMON block / integer i,j,k
error: Argument of ALLOCATED() must be an ALLOCATABLE object or component / if ( allocated(fun(a)) .and. any( fun(a) /= (/1,2,1/) ) .and. &
error: Array 'yyy' without ALLOCATABLE or POINTER attribute must have explicit shape / integer,intent(in) :: yyy(:)
error: CYCLE construct-name is not in scope / CYCLE JFU
error: Cannot call subroutine 'lqf' like a function / n1=lqf(n1,1)
error: Cannot read module file for module 'user_function_choice': Source file 'user_function_choice.mod' was not found / use user_function_choice
error: Cannot use-associate 'araloc'; it is already declared in this scope / USE modinf
error: Cannot use-associate generic interface 'addition' with specific procedure of the same name when another such generic is in scope / Use IntStuff
error: DATA statement value 'int(zaffeebbe,kind=4)' for 'c(1_8)' is not a constant
error: DATA statement value 'real(z8000000000000000,kind=8)' for 'm0' is not a constant / REAL(8) :: M0/Z8000000000000000/
error: DATA statement value could not be converted to the type 'CHARACTER(KIND=1,LEN=8_8)' of the object 'name' / data name/z'96bc914f81408140'/
error: DO controls should be INTEGER / do i=.true.,10
error: Default-initialized 'i01' must not be initialized in a DATA statement / data i01 /1*1/ !
error: Default-initialized 'str1' must not be initialized in a DATA statement / data str1,str2,str3,str4 /4*ty1(3,4)/
error: Derived type '/hru2tuj03d94ragyx/' not found / RECORD /HRU2TUJ03D94RAGYX/ A445MV0HS4_6W43KK58F84(65:65,1:1,1:1), &
error: Derived type '/o_calc/' not found / RECORD /O_CALC/ O(1:1_1,-83_4:-83)
error: Derived type variable 'str' may not appear in a COMMON block due to component with default initialization / common /com1/ i1,i2,str
error: Dimension 1 of left-hand side has extent 1, but right-hand side has extent 4 / r=reshape((/d/),(/4,1,1/)) !print *,d
error: Dummy argument 'c=' (#3) is not OPTIONAL and is not associated with an actual argument in this procedure reference / BSign = + Sign (A, C)
error: Duplicate UNIT specifier / OPEN(20,'testu.dat',STATUS='unknown')
error: EXIT construct-name is not in scope / EXIT HT13ZQZ4RQS
error: Entity in ALLOCATE statement must have the ALLOCATABLE or POINTER attribute / allocate(mv3(2,2))
error: Expected 'F' edit descriptor '.d' value / write(cm,'(2f11)') sf(i1)
error: Explicit initializations of equivalenced objects affect 'b(1_8)' more than once / integer b(10)
error: External I/O is not allowed in a pure subprogram / if (size(a1).ne.1) write(6,*) "NG"
error: Function cannot have both an explicit type prefix and a RESULT suffix / complex(4)::dd(3,2)
error: Generic 'assignment(=)' may not have specific procedures 'ifun' and 'jfun' as their interfaces are not distinguishable / interface assignment(=)
error: IMPLICIT statements must follow USE and IMPORT and precede all other declarations / implicit character (len=n(2)) (a)
error: If FILE appears, UNIT must not appear / if (0.eq.1) inquire(6,file='aaaa',iostat=i)
error: Implicit declaration of function 'jfunc02' has a different result type than in previous declaration / ifun=jfunc02(a)
error: Implicitly typed local entity 'kk' not allowed in specification expression / pointer (jj,kk)
error: Implied-shape array 'ia' must be a named constant or a dummy argument / pointer(i,ia(*))
error: Incomplete character literal / if (abs((i123456789,j1234567890123)-(1,2))>0.000001)write(6,*) "NG"
error: Initialization expression cannot be converted to declared type of 'a01' / logical(kind=8) :: a01=B'1'
error: Invalid ACTION value 'both' / 1 ACTION='both',FORM='FORMATTED')
error: Invalid specification expression: reference to OPTIONAL dummy argument 'd' / integer::r(size(d))
error: LOGICAL operands must be compared using .EQV. or .NEQV. / if (any(tt/=(/.false.,.true.,.false./)))print *,'error-1'
error: Left-hand side of assignment is not modifiable / struct01%struct02(1)%char02 = "0"
error: Multiple initialization of COMMON block /cmn/ / common /cmn/i
error: Must be a constant value / integer :: a01=z2
error: Must be a scalar value, but is a rank-2 array / INTEGER*4 G(1:X0VFH86MK7GNSFWYN5RLD-(S))
error: Must have INTEGER type, but is REAL(4) / write(8,*)(1,r=1,10)
error: No explicit type declared for 'sub' / subroutine dsp_root(sub,icon)
error: No intrinsic or user-defined ASSIGNMENT(=) matches operand types REAL(4) and LOGICAL(4) / BAR = .TRUE.
error: Operands of .EQ. must have comparable types; have INTEGER(4) and LOGICAL(4) / forall (i=1:1,jx==aa(1,1,1))
error: Operands of .NE. must have comparable types; have LOGICAL(4) and INTEGER(1) / parameter (ia01=ishc(2_1, 3).ne.ishftc(2_1, 3))
error: Procedure 'p' is referenced before being sufficiently defined in a context where it must be so
error: Recursive call to 'is1' requires a distinct RESULT in its declaration / j= is1(i+1)
error: Reference to rank-2 object 'az1' has 1 subscripts / equivalence (az1(1),az2(1,1))
error: References to the procedure 'd7tpr' require an explicit interface / s = d7tpr(p, v(step1:), v(step1:))
error: Result of ENTRY is not compatible with result of containing function / ENTRY TAN(W1,W2)
error: The type of 'i' has already been implicitly declared / integer*8 i,ifun,ii
error: Type of Cray pointee 'vp' is a non-sequence derived type / pointer(ip,vp)
error: Unexpected ',' in format expression / WRITE(6,FMT='(1H ,/22X,''CORRECT VAL : '', &
error: Unexpected '<' in format expression / write(1,'(1h ,i<i+j>.<i+j>)') 3
error: Unexpected 'Q' in format expression / read(1,'(i3,q)') i,j
error: Unexpected 'R' in format expression / write(1,'(10r,i3)') 11
error: Unimplemented CARRIAGECONTROL value 'fortran' / OPEN (3, FILE = 'fort.3', carriagecontrol = 'fortran')
error: Unmatched '(' / CALL EXP ( &10)
error: Unmatched '(' / write(1'2,3) 1
error: VOLATILE attribute may apply only to a variable / integer function fun1() result(res)
error: Values in array constructor must have the same declared type when no explicit type appears / a(1)%za=(/2.0,3/)
error: Variable 'a' with TARGET attribute is not allowed in an equivalence set / equivalence
error: expected '(' / automatic :: a,b
error: expected '(' / changeentry st01
error: expected '(' / definefile 10(10,10,E,i)
error: expected '(' / module mod4567890123456789012345678901234567890 &
error: expected '(' / static :: iii
error: expected '(' / yy.i1y=(/1_1,2_1/)
error: expected ')' / 10 FORMAT ('1',<i5>X,'OS/700 FORTRAN-A TEST')
error: expected ')' / VEBBHWACWJJMNWQ3C9TV=(7.80526028342937e13_LP2EY,8.356047210334177e32_ &
error: expected ')' / _8)
error: expected ')' / allocate(a.za1(5))
error: expected ')' / b(1:2).wa(3).xa(4).ya(5) = fun_alloc(2)
error: expected ')' / deallocate(typeZ_pointer(1).za)
error: expected ')' / if ( any(j1/=1) .or . any(j2/=1) .or . any(j3/=1) .or . &
error: expected ')' / open(1,blocksize=10000)
error: expected ')' / parameter (ii12345 28282=4,j j 1 2 3 4 5 6 7 8 9=5)
error: expected '/' / a23456789a23456789a23456789a23456789a23456789 &
error: expected ':' / 504 FORMAT(3Q15.7)
error: expected ':' / aa.yp=>func(t1,t2,t3)
error: expected '=' / BLOCKSIZE=bsize )
error: expected '=' / INQUIRE( unit=1, FLEN=fs)
error: expected '=>' / 343 KL9C76QIU0A9191ZMQ.U=-44
error: expected 'END' / else if(a.lt.b .and. c.gt.d) then
error: expected 'FORALL' / integer :: aler
error: expected component definition / union
error: expected end of statement / a23456789a23456789a23456789a23456789a23456789 & -> Error with whitespace in name
error: expected object names / volatile :: /com/
error: expected one of '):' / A4M86Y5RDIS930CACACQJ=RESHAPE((/27_8,2_8,(N1Z2B9WQ%ES),(1_8-(-8_2) &
error: expected one of '):' / if (.not.allocated(a.za)) write(6,*) "NG"
error: expected one of '):' / if (loc(pp.za) /= loc(qq.za)) print *,'error 1'
error: loc("./snggg274.f90":57:5): substring of static array object / a=ap(1:n/3)//'x'(1:n/3)//'x'(1:n/3)
error: loc("./snggg282.f90":32:2): symbol is not mapped to any IR value / forall (i=x%a(i3-i2,1):x%a(5,1))
error: loc("./snggm015.f90":2:1): (semantics issue) no assigned goto targets
error: loc("./snggn162.f90":18:1): symbol is not a dummy in this call
error: operands must be INTEGER or REAL / write(1,*) ((pi,pi), pi)
error: type parameter definitions must appear before component declarations / character*1,z11(-3:-1),z21(-5:-4,-9:-7),z12(-3:-1),&
error:ALLOCATABLE dummy argument 'p=' must be associated with an ALLOCATABLE actual argument / write (u1,*) i4_f(i='1',p=ptr_nf(1))
expected 'END FORALL' / end for all
expected end of statement / integer,automatic::b(3,4)
expected one of '):' / if (.not.allocated(a.ch3)) write(6,*) "NG"
flang-new: error: unable to execute command: Killed
func.func' op symbol declaration cannot have public visibility / type definition
malloc(): invalid size (unsorted)
mlir/lib/IR/Types.cpp:93: unsigned int mlir::Type::getIntOrFloatBitWidth() const: Assertion `isIntOrFloat() && "only integers and floats have a bitwidth"' failed.
n' is not an object that can appear in an expression / integer i(n(2))
operand #0 does not dominate this use
operand #1 does not dominate this use
operand #3 does not dominate this use
redefinition of symbol named '_FortranADestroy'
unhandled type in fir.box code generation
unsigned int mlir::Type::getIntOrFloatBitWidth() const: Assertion `isIntOrFloat() && "only integers and floats have a bitwidth"' failed.
- execution error
Runtime result error
Segmentation fault (core dumped)
fatal Fortran runtime error(./U_of_south_Florida.f90:391): End of file during input
fatal Fortran runtime error(./d11.f95:15): End of file during input
fatal Fortran runtime error(./nif001.f90:4): Invalid FORMAT: integer expected at ')'
fatal Fortran runtime error(./snggg749.f90:410): End of file during input
fatal Fortran runtime error(./snggg908.f90:92): ACTION= may not be changed on an open unit
fatal Fortran runtime error(./snggj163.f90:164): Bad character '.' in INTEGER input field
fatal Fortran runtime error(./snggj408.f90:94): DOT_PRODUCT: SIZE(VECTOR_A) is 33 but SIZE(VECTOR_B) is 29fatal Fortran runtime error
fatal Fortran runtime error(./snggl323.f90:11): NAMELIST input group 'cntrl' was not terminated at '&'
fatal Fortran runtime error(./snggm252.f90:7): Base address is null
- internal error(error message)
fatal internal error: CHECK(exprAnalyzer_.context().AnyFatalError()) failed at /.../llvm-project/flang/lib/Semantics/data-to-inits.cpp(354)