[flang] Temporarily disable part of data01 test
authorTim Keith <tkeith@nvidia.com>
Sat, 22 Feb 2020 00:25:10 +0000 (16:25 -0800)
committerTim Keith <tkeith@nvidia.com>
Sat, 22 Feb 2020 00:25:10 +0000 (16:25 -0800)
`data x /a(1)/` is ambiguous. The data value may be an array element
or a structure constructor. We need to parse it as one of these and
then fix up the parse tree when it should have been the other one.

My PR 1012 changed the parser to identify this as an array element.
That makes this test invalid until we have the right parse tree fixup,
so I am disabling it for now.

Original-commit: flang-compiler/f18@72aa278f0341f345a12fcd76a6ad1f2045ecc233
Reviewed-on: https://github.com/flang-compiler/f18/pull/1013

flang/test/semantics/data01.f90

index 02c4674..db97833 100644 (file)
@@ -37,12 +37,12 @@ subroutine CheckRepeat
   DATA myName%age / digits(myAge) * 35 /
 end
 
-subroutine CheckValue
-  use m1
-  !C883
-  !ERROR: Derived type 'persn' not found
-  DATA myname / persn(2, 'Abcd Efgh') /
-  !C884
-  !ERROR: Structure constructor in data value must be a constant expression
-  DATA myname / person(myAge, 'Abcd Ijkl') /
-end
+!subroutine CheckValue
+!  use m1
+!  !C883
+!  !ERROR: Derived type 'persn' not found
+!  DATA myname / persn(2, 'Abcd Efgh') /
+!  !C884
+!  !ERROR: Structure constructor in data value must be a constant expression
+!  DATA myname / person(myAge, 'Abcd Ijkl') /
+!end