c++: structural_comptypes addition
authorNathan Sidwell <nathan@acm.org>
Wed, 22 Jul 2020 15:27:30 +0000 (08:27 -0700)
committerNathan Sidwell <nathan@acm.org>
Wed, 22 Jul 2020 15:43:25 +0000 (08:43 -0700)
commit5324a3e621d9a2eec6addcc439c4adb1befa8ea9
treee6113143051035c7b04d772f262e5f3f956236c5
parent0f32c94fc72313798b3a9033c92ceb34f7b7febc
c++: structural_comptypes addition

I had to debug structural_comptypes, and its complex if conditions and
tail calling of same_type_p made that hard.  I'd hope we can turn the
eqivalent of return boolean_fn () ? true : false; into a tail call of
the boolean.  We also were not dealing with TYPEOF_TYPE.

gcc/cp/
* typeck.c (structural_comptypes): [DECLTYPE_TYPE] break
apart complex if.
[UNDERLYING_TYPE]: Use an if.
[TYPEOF_TYPE]: New.
gcc/cp/typeck.c