[all-commits] [llvm/llvm-project] 398fcf: [flang] Fix bug for forward referenced type
Pete Steinfeld via All-commits
all-commits at lists.llvm.org
Fri Sep 11 12:05:15 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 398fcf224b8dd0968f27cdcc7e75bb0bc8ed6d09
https://github.com/llvm/llvm-project/commit/398fcf224b8dd0968f27cdcc7e75bb0bc8ed6d09
Author: Peter Steinfeld <psteinfeld at nvidia.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M flang/lib/Semantics/symbol.cpp
M flang/test/Semantics/bad-forward-type.f90
Log Message:
-----------
[flang] Fix bug for forward referenced type
A type name in an IMPLICIT declaration that was later used in a PARAMETER
statement caused problems because the default symbol scope had not yet been
initialized. I avoided dereferencing in the situation where the default scope
was uninitialized and added a test that triggers the problem.
Differential Revision: https://reviews.llvm.org/D87535
More information about the All-commits
mailing list