llvm/flang/lib
Tim Keith ee908da853 [flang] Preserve order of type parameters
Type parameters were sorted by the order of the type-param-def-stmts.
But we need to preserve the order of the type-param-name-list.
The is the order of positional parameters in a derived-type-spec.

So add `paramNames` to `DerivedTypeDetails` to preserve the original
order. Using this allows us to write module files with both the
type-param-name-list and type-param-def-stmts in the original order.

Also fix a bug where a duplicate type-param-def caused a spurious
extra error. If `MakeTypeSymbol()` reports an error we should not
call `SetType()` because it will just report another error.

Original-commit: flang-compiler/f18@3ca55b6333
Reviewed-on: https://github.com/flang-compiler/f18/pull/239
2018-12-06 17:52:43 -08:00
..
common [flang] one more file 2018-12-05 13:06:00 -08:00
evaluate [flang] Fix bug converting actual argument to Fortran 2018-12-07 07:41:49 -08:00
parser [flang] Change when symbol is set in parser::Name 2018-12-06 07:16:52 -08:00
semantics [flang] Preserve order of type parameters 2018-12-06 17:52:43 -08:00
CMakeLists.txt [flang] Rearrange some facilities into a new lib/common. 2018-06-18 11:05:17 -07:00