llvm-project/flang/test
Peter Steinfeld 2b795ec682 [flang] Check for undefined derived types
It's possible to specify refer to an undefined derived type as the type of a
component of another derived type and then never define the type of the
component.  We were not detecting this situation.  To fix this, I
changed the value of isForwardReferenced_ in the symbol's
DerivedTypeDetails and checked for it when performing other derived type
checks.

I also had to record the fact that error messages were previously
emitted for the same problem in some cases so that I could avoid
duplicate messages.

I also added a test.

Differential Revision: https://reviews.llvm.org/D103714
2021-06-04 14:33:52 -07:00
..
Driver [flang][driver] Add checks for missing option arguments 2021-06-04 15:16:56 +01:00
Evaluate [flang] Switch from %f18 to %flang_fc1 in a test 2021-04-23 15:10:07 +00:00
Fir [flang][fir] Add the pre-code gen rewrite pass and codegen ops. 2021-03-24 19:27:10 -07:00
Frontend [flang][driver] Remove `%flang-new` from the LIT configuration 2021-04-13 10:55:01 +00:00
Lower [flang] Update the regression tests to use the new driver when enabled 2021-04-15 08:52:23 +00:00
NonGtestUnit [flang] Run non-gtest unit tests with lit. 2020-07-24 14:49:39 +01:00
Parser [flang] Update the regression tests to use the new driver when enabled 2021-04-15 08:52:23 +00:00
Preprocessing [flang][driver] Update PP tests to use the new driver 2021-01-25 12:32:23 +00:00
Semantics [flang] Check for undefined derived types 2021-06-04 14:33:52 -07:00
Unit [flang] unit test support for out-of-tree and in-tree using google tests framework 2020-06-15 22:09:56 +05:30
CMakeLists.txt [flang] Build intrinsic .mod files in include/flang 2021-03-15 08:03:02 -07:00
lit.cfg.py [flang] Remove `%f18` from LIT configuration files 2021-05-06 08:42:25 +00:00
lit.site.cfg.py.in [flang][driver] Add the new flang compiler and frontend drivers 2020-09-11 10:55:54 +01:00