Re: [PATCH v2] c++: Fix for decltype(auto) and parenthesized expr [PR103403]

2021-12-03 Thread Jason Merrill via Gcc-patches
On 12/2/21 18:12, Marek Polacek wrote: On Wed, Dec 01, 2021 at 11:16:27PM -0500, Jason Merrill wrote: On 12/1/21 10:16, Marek Polacek wrote: In r11-4758, I tried to fix this problem: int & = 0; decltype(auto) j = i; // should behave like int & = i; error wherein do_auto_deduction was

[PATCH v2] c++: Fix for decltype(auto) and parenthesized expr [PR103403]

2021-12-02 Thread Marek Polacek via Gcc-patches
On Wed, Dec 01, 2021 at 11:16:27PM -0500, Jason Merrill wrote: > On 12/1/21 10:16, Marek Polacek wrote: > > In r11-4758, I tried to fix this problem: > > > >int & = 0; > >decltype(auto) j = i; // should behave like int & = i; error > > > > wherein do_auto_deduction was getting confused