Re: Implementing p0515 - spaceship operator

2018-01-09 Thread Tim van Deurzen
On 01/08/2018 11:28 PM, Jason Merrill wrote: On Mon, Jan 8, 2018 at 5:13 PM, Jonathan Wakely wrote: On 8 January 2018 at 22:07, Jason Merrill wrote: On Mon, Jan 8, 2018 at 4:07 PM, Tim van Deurzen wrote: I've been spending some time the past few weeks implementing p0515r2, i.e. the proposa

Re: Implementing p0515 - spaceship operator

2018-01-09 Thread Nathan Sidwell
On 01/08/2018 05:07 PM, Jason Merrill wrote: On Mon, Jan 8, 2018 at 4:07 PM, Tim van Deurzen wrote: There's a gccint.info documentation file, the Options node seems like what you're looking for. You will want to add a new option to c-family/c.opt. diffing between branches/c++-modules and t

Re: Implementing p0515 - spaceship operator

2018-01-09 Thread Martin Sebor
On 01/08/2018 02:07 PM, Tim van Deurzen wrote: Hi, I've been spending some time the past few weeks implementing p0515r2, i.e. the proposal for consistent comparisons for C++ (aka the spaceship operator). I've received some very valuable help on the IRC channel, but I'm still a little bit stuck.

Re: Alignas broken when used with constexpr array data member for structure

2018-01-09 Thread Jonathan Wakely
On 9 January 2018 at 13:15, Alec Teal wrote: > Hi there, > > In GCC 4.8.4 I have something like the following: > > constexpr int x = 5; > > constexpr int y = 4; > > struct alignas(y) my_data_block { > >char data[x]; > > }; > > > And it causes some weird errors to the tune of "size of array ‘da

Alignas broken when used with constexpr array data member for structure

2018-01-09 Thread Alec Teal
Hi there, In GCC 4.8.4 I have something like the following: constexpr int x = 5; constexpr int y = 4; struct alignas(y) my_data_block {    char data[x]; }; And it causes some weird errors to the tune of "size of array ‘data’ is not an integral constant-expression" in the presence of the a