Re: [C++ PATCH] Fix process_template_parm error-recovery (PR c++/90138)

2019-04-19 Thread Jason Merrill
OK. On Fri, Apr 19, 2019 at 1:43 AM Jakub Jelinek wrote: > > Hi! > > On the following testcase, there is a type template argument, for which > we create a decl (decl == parm in that case) and pushdecl it. But, if > the pushdecl detects a redeclaration in that scope, duplicate_decls will >

[C++ PATCH] Fix process_template_parm error-recovery (PR c++/90138)

2019-04-19 Thread Jakub Jelinek
Hi! On the following testcase, there is a type template argument, for which we create a decl (decl == parm in that case) and pushdecl it. But, if the pushdecl detects a redeclaration in that scope, duplicate_decls will ggc_free the decl passed to it and we then add that ggc_freed tree into the