[Bug c++/79420] [7 Regression] ICE on invalid C++ code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14573

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 14 14:36:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79420

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #5)
> Given PR79463 and Comment 4, it seems that we shouldn't change at least
> VAR_DECLs and OVERLOADs back to dependent.

We can treat them as dependent, but we shouldn't clobber the TREE_TYPE of a
VAR_DECL or OVERLOAD.  We should only do that for EXPR_P trees.


More information about the Gcc-bugs mailing list