Re: Add a testcase for C++17 selection statements with initializer

2016-10-05 Thread Jason Merrill
OK. On Wed, Oct 5, 2016 at 5:47 PM, Marek Polacek wrote: > This adds a further test for selection statements with initializer C++17 > feature. Except that I'm not quite sure if it's valid, but I think it is; > although the standard says > An if statement of the form > > if constexpr opt ( init

Add a testcase for C++17 selection statements with initializer

2016-10-05 Thread Marek Polacek
This adds a further test for selection statements with initializer C++17 feature. Except that I'm not quite sure if it's valid, but I think it is; although the standard says An if statement of the form if constexpr opt ( init-statement condition ) statement is equivalent to { init-state