Re: C++ PATCH to fix ICE in generic lambda with user-defined conversion (PR c++/84125)

2018-02-01 Thread Jason Merrill
OK. On Thu, Feb 1, 2018 at 3:23 PM, Marek Polacek wrote: > On Thu, Feb 01, 2018 at 02:35:08PM -0500, Jason Merrill wrote: >> On Tue, Jan 30, 2018 at 3:18 PM, Marek Polacek wrote: >> > This testcase breaks since r256550 because we end up trying to >> > build_address of >> > a CONSTRUCTOR, but th

Re: C++ PATCH to fix ICE in generic lambda with user-defined conversion (PR c++/84125)

2018-02-01 Thread Marek Polacek
On Thu, Feb 01, 2018 at 02:35:08PM -0500, Jason Merrill wrote: > On Tue, Jan 30, 2018 at 3:18 PM, Marek Polacek wrote: > > This testcase breaks since r256550 because we end up trying to > > build_address of > > a CONSTRUCTOR, but that doesn't work because we hit > > gcc_checking_assert (TREE_CO

Re: C++ PATCH to fix ICE in generic lambda with user-defined conversion (PR c++/84125)

2018-02-01 Thread Jason Merrill
On Tue, Jan 30, 2018 at 3:18 PM, Marek Polacek wrote: > This testcase breaks since r256550 because we end up trying to build_address > of > a CONSTRUCTOR, but that doesn't work because we hit > gcc_checking_assert (TREE_CODE (t) != CONSTRUCTOR); > > finish_static_assert gets {} as 'condition'.

C++ PATCH to fix ICE in generic lambda with user-defined conversion (PR c++/84125)

2018-01-30 Thread Marek Polacek
This testcase breaks since r256550 because we end up trying to build_address of a CONSTRUCTOR, but that doesn't work because we hit gcc_checking_assert (TREE_CODE (t) != CONSTRUCTOR); finish_static_assert gets {} as 'condition'. In the testcase we have a user-defined conversion, so {} should b