Re: C++ PATCH for c++/70167, array prvalue treated as lvalue

2017-05-09 Thread Jason Merrill
On Tue, May 9, 2017 at 9:46 AM, Jason Merrill wrote: > The issue here was that we've been trying to treat C++ > list-initialized temporaries (which are rvalues) the same as C99 > compound literals (which are lvalues). This patch distinguishes > between them so we can treat them each correctly. T

C++ PATCH for c++/70167, array prvalue treated as lvalue

2017-05-09 Thread Jason Merrill
The issue here was that we've been trying to treat C++ list-initialized temporaries (which are rvalues) the same as C99 compound literals (which are lvalues). This patch distinguishes between them so we can treat them each correctly. This leaves open the question of how compound literals ought to