Re: [C++ PATCH] Fix ICE in invalid decomposition (PR c++/79372)

2017-02-06 Thread Jason Merrill
OK. On Mon, Feb 6, 2017 at 2:34 PM, Jakub Jelinek wrote: > Hi! > > The following patch fixes ICE when cp_finish_decomp already when parsing > template manages to diagnose the decomposition as errorneous, then > the types of all the decls for the decomp identifiers are all > error_mark_node, but t

[C++ PATCH] Fix ICE in invalid decomposition (PR c++/79372)

2017-02-06 Thread Jakub Jelinek
Hi! The following patch fixes ICE when cp_finish_decomp already when parsing template manages to diagnose the decomposition as errorneous, then the types of all the decls for the decomp identifiers are all error_mark_node, but they don't have DECL_VALUE_EXPR tsubst_decl_names has been asserting.