On 25 Aug 2017, at 07:32, Mark Millard wrote:
>
> As I remember _Static_assert is from C11, not
> the older C99.
In pre-C11 dialects of C, _Static_assert is an identifier reserved for the
implementation. sys/cdefs.h defines it to generate a zero-length array if the
condition is true or a nega
2017-08-25 8:32 GMT+02:00 Mark Millard :
>> # g++49 main.cc
>> main.cc:2:15: error: expected constructor, destructor, or type conversion
>> before '(' token
>> _Static_assert(1,"Test");
Yeah, that's because GCC is such a pain in the neck compiler that it
doesn't want to expose these C11 keywords
On 2017-Aug-25, at 12:14 AM, David Chisnall wrote:
> On 25 Aug 2017, at 07:32, Mark Millard wrote:
>>
>> As I remember _Static_assert is from C11, not
>> the older C99.
>
> In pre-C11 dialects of C, _Static_assert is an identifier reserved for the
> implementation. sys/cdefs.h defines it to
On 8/24/2017 9:33 PM, Shane Ambler wrote:
> On 25/08/2017 05:40, Mike Tancsa wrote:
>> On 8/24/2017 4:01 PM, Mike Tancsa wrote:
>>> OK, this is fairly easy to repeat. If I start a sync of a snapshot via
>>> zrep, it hangs the box. CTRL+T shows
>>>
>>>
>>> DEBUG: overiding stale lock on zroot/chyve
2017-08-25 9:46 GMT+02:00 Mark Millard :
> It appears that at least 11.1-STABLE -r322807 does not handle
> -std=c++98 styles of use of _Static_assert for g++7 in that
> g++7 reports an error:
Maybe we need to do something like this?
Index: sys/sys/cdefs.h
=
On Fri, Aug 25, 2017 at 6:53 AM, Ed Schouten wrote:
> 2017-08-25 9:46 GMT+02:00 Mark Millard :
> > It appears that at least 11.1-STABLE -r322807 does not handle
> > -std=c++98 styles of use of _Static_assert for g++7 in that
> > g++7 reports an error:
>
> Maybe we need to do something like this?
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
The second BETA build of the 10.4-RELEASE release cycle is now available.
Installation images are available for:
o amd64 GENERIC
o i386 GENERIC
o ia64 GENERIC
o powerpc GENERIC
o powerpc64 GENERIC64
o sparc64 GENERIC
o armv6 CUBOX-HUMMINGBOARD
o a