diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-07-28 08:57:36 -0700 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-07-28 09:01:32 -0700 |
commit | f3665bd1111c1799c0421490b5e655f977570354 (patch) | |
tree | 57a656ea045c750c559b5af198cc0301b2275ad4 /gcc/fortran/module.c | |
parent | 0cd58a9f091b39c5e41b7954d6c4bd88f3567d49 (diff) | |
download | gcc-f3665bd1111c1799c0421490b5e655f977570354.zip gcc-f3665bd1111c1799c0421490b5e655f977570354.tar.gz gcc-f3665bd1111c1799c0421490b5e655f977570354.tar.bz2 |
c++: Set more DECL_CONTEXTs
I discovered we were not setting DECL_CONTEXT in a few cases, and
grokfndecl's control flow wasn't making it clear that we were doing it
in all cases.
gcc/cp/
* cp-gimplify.c (cp_genericize_r): Set IMPORTED_DECL's context.
* cp-objcp-common.c (cp_pushdecl): Set decl's context.
* decl.c (grokfndecl): Make DECL_CONTEXT setting clearer.
Diffstat (limited to 'gcc/fortran/module.c')
0 files changed, 0 insertions, 0 deletions