diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-10-16 10:22:16 -0700 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-10-16 10:22:16 -0700 |
commit | ccb4f20cbee1756c464033bbdda2f27b6aa2a63f (patch) | |
tree | 141fbcac7c4ea07cb5499361bfab57e40a495b6d /gcc/fortran/iresolve.c | |
parent | a16da48bf19bb139e5461e5b5b7f072d5369b054 (diff) | |
download | gcc-ccb4f20cbee1756c464033bbdda2f27b6aa2a63f.zip gcc-ccb4f20cbee1756c464033bbdda2f27b6aa2a63f.tar.gz gcc-ccb4f20cbee1756c464033bbdda2f27b6aa2a63f.tar.bz2 |
c++: Fix nullptr deref [pr97460[
My changes to friend handling meant that there are now cases where a
friend doesn't get a lang-specific object. So we need to check there
is one before looking inside it.
PR c++/97460
gcc/cp/
* pt.c (push_template_decl): Check DECL_LANG_SPECIFIC in friend
case.
gcc/testsuite/
* g++.dg/template/pr97460.C: New.
Diffstat (limited to 'gcc/fortran/iresolve.c')
0 files changed, 0 insertions, 0 deletions