Re: How to use pragma in a compound literal in GCC 9

2019-02-12 Thread Jakub Jelinek
On Tue, Feb 12, 2019 at 06:19:56PM +1100, Daurnimator wrote: > A project I help maintain has had a report that it fails to compile with GCC 9 > https://github.com/wahern/cqueues/issues/212#issuecomment-461693111 > > I've attached a minimal reproduction of the issue. > Trying to compile it results

How to use pragma in a compound literal in GCC 9

2019-02-11 Thread Daurnimator
A project I help maintain has had a report that it fails to compile with GCC 9 https://github.com/wahern/cqueues/issues/212#issuecomment-461693111 I've attached a minimal reproduction of the issue. Trying to compile it results in: : In function 'main': :46:15: error: lvalue required as unary '&'