[patch c++]: Fix PR 59759

2015-05-26 Thread Kai Tietz
Hi, I am not sure if suggested fix is the thing we want here. But infact having here a VAR_DECL can be caused by prior errors introducing them. So we simply might want to treat VAR_DECL in unify via unify_template_argument_mismatch. Tested for 5.x branch, and trunk. Ok for apply? Kai

Re: [patch c++]: Fix PR 59759

2015-05-26 Thread Marek Polacek
On Tue, May 26, 2015 at 02:21:16PM +0200, Kai Tietz wrote: Hi, I am not sure if suggested fix is the thing we want here. But infact having here a VAR_DECL can be caused by prior errors introducing them. So we simply might want to treat VAR_DECL in unify via