c++: Adding exception specs can changed dependentness
Nathan Sidwell
nathan@acm.org
Wed Oct 7 12:01:15 GMT 2020
Making an exception variant can cause a non-dependent function type to
become dependent (since c++17 eh-specs are part of the type). The
same is (possibly?) true for adding a late return type. Fixed thusly.
My upcoming local extern-decl changes have a test case that covers
this (which was how I found it).
gcc/cp/
* tree.c (build_cp_fntype_variant): Clear
TYPE_DEPENDENT_P_VALID if necessary.
nathan
--
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dep-spec.diff
Type: text/x-patch
Size: 513 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201007/5c01960f/attachment.bin>
More information about the Gcc-patches
mailing list