c++: Fix nullptr deref [pr97460[
Nathan Sidwell
nathan@acm.org
Fri Oct 16 17:24:22 GMT 2020
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.
pushing to trunk
nathan
--
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 97460.diff
Type: text/x-patch
Size: 1026 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201016/80f1b1f7/attachment-0001.bin>
More information about the Gcc-patches
mailing list