https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99080
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>: https://gcc.gnu.org/g:ff91735a5b861dd6eaf2c1e511f26a9255898e7d commit r13-860-gff91735a5b861dd6eaf2c1e511f26a9255898e7d Author: Marek Polacek <pola...@redhat.com> Date: Fri May 13 20:09:53 2022 -0400 c++: Add !TYPE_P assert to type_dependent_expression_p [PR99080] As discussed here: <https://gcc.gnu.org/pipermail/gcc-patches/2021-February/564629.html>, type_dependent_expression_p should not be called with a type argument. I promised I'd add an assert so here it is. One place needed adjusting. PR c++/99080 gcc/cp/ChangeLog: * pt.cc (type_dependent_expression_p): Assert !TYPE_P. * semantics.cc (finish_id_expression_1): Handle UNBOUND_CLASS_TEMPLATE specifically.