c++: typename_type structural comparison

Nathan Sidwell nathan@acm.org
Wed Dec 2 20:58:57 GMT 2020


For modules we need to compare structurally all	the way	down.  This
means inhibiting typename_type resolution, independent of comparing
specializations.

         gcc/cp/
         * cp-tree.h (comparing_typenames): Declare.
         * pt.c (comparing_typenames): Define.
         (spec_hasher::equal): Increment it around comparisons.
         * typeck.c (structural_comptypes): Adjust TYPENAME resolution
         check.

pushing to trunk

nathan
-- 
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 16.4-c++-typename.diff
Type: text/x-patch
Size: 2706 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201202/fa17d2c3/attachment-0001.bin>


More information about the Gcc-patches mailing list