Re: C++ PATCH to add test for c++/91104

2019-07-31 Thread Jason Merrill
On 7/17/19 1:51 PM, Marek Polacek wrote: This was a wrong code issue where we printed 2 3 1 1 2 3 instead of 1 2 3 1 2 3 but it was fixed by r271705. I don't know of a good way to check the auto... expansion here so I used dg-output. You could call another function with the expansion and check

C++ PATCH to add test for c++/91104

2019-07-17 Thread Marek Polacek
This was a wrong code issue where we printed 2 3 1 1 2 3 instead of 1 2 3 1 2 3 but it was fixed by r271705. I don't know of a good way to check the auto... expansion here so I used dg-output. Tested on x86_64-linux, ok for trunk? 2019-07-17 Marek Polacek PR c++/91104 * g++.d