llvm-project/flang/lib
Pete Steinfeld 85d9745c83 [flang] Fix a crash when creating generics from a copy
Summary:
When a program unit creates a generic based on one defined in a module, the
function `CopyFrom()` is called to create the `GenericDetails`.  This function
copied the `specificProcs_` but failed to copy the `bindingNames_`.  If the
function `CheckGeneric()` then gets called, it tries to index into the empty
binding names and causes the crash.

I fixed this by adding code to `CopyFrom()` to copy the binding names.

I also added a test that causes the crash.

Reviewers: klausler, tskeith, DavidTruby

Subscribers: llvm-commits

Tags: #llvm, #flang

Differential Revision: https://reviews.llvm.org/D83491
2020-07-09 15:49:45 -07:00
..
Common [flang] Use the Flang cmake-functions to add targets. 2020-04-16 15:51:30 +01:00
Decimal [flang] Clean up binary dependences of runtime libraries 2020-07-02 12:27:01 -07:00
Evaluate [flang] partially revert upstreamed code to support complex values in runtime support to avoid warnings. 2020-07-09 07:39:44 -07:00
Lower partial revert on RTBuilder.h to avoid warnings. 2020-07-08 08:47:13 -07:00
Optimizer [flang] Upstreaming intrinsic call lowering. 2020-07-08 07:34:21 -07:00
Parser [flang] Support for image selectors 2020-07-08 07:31:54 -07:00
Semantics [flang] Fix a crash when creating generics from a copy 2020-07-09 15:49:45 -07:00
CMakeLists.txt [flang] A rework of the cmake build components for in and out of tree builds. 2020-03-26 18:17:04 +00:00