[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: proposed support for C1X-style static_assert
From: |
Bruno Haible |
Subject: |
Re: proposed support for C1X-style static_assert |
Date: |
Mon, 23 May 2011 01:09:06 +0200 |
User-agent: |
KMail/1.9.9 |
Hi Paul,
> Here's what I pushed. Thanks to Bruno and Eric for the reviews.
>
> ---
> ChangeLog | 22 +++++++
> doc/posix-headers/assert.texi | 21 ++++++-
> lib/assert.in.h | 28 +++++++++
> lib/verify.h | 130
> +++++++++++++++++++++++++----------------
> m4/assert_h.m4 | 29 +++++++++
> modules/assert-h | 47 +++++++++++++++
This change broke the 'verify' module.
How to reproduce:
$ ./gnulib-tool --test assert-h exclude
...
../../gllib/exclude.c:58: error: expected declaration specifiers or ‘...’
before ‘(’ token
../../gllib/exclude.c:58: warning: data definition has no type or storage class
make[4]: *** [exclude.o] error 1
A smaller example: In a testdir with the 'assert-h' and 'verify' modules,
$ cat foo.c
#include <assert.h>
#include "verify.h"
verify (2 + 3 == 5);
$ gcc -c foo.c -I .
foo.c:3: error: expected declaration specifiers or ‘...’ before numeric constant
foo.c:3: warning: data definition has no type or storage class
The reason is that "verify.h" no longer defines the 'verify' macro if
<assert.h> was already included in the same compilation unit.
Bruno
--
In memoriam Richard Friedmann <http://de.wikipedia.org/wiki/Richard_Friedmann>
- proposed support for C1X-style static_assert, Paul Eggert, 2011/05/05
- Re: proposed support for C1X-style static_assert, Bruno Haible, 2011/05/05
- Re: proposed support for C1X-style static_assert, Paul Eggert, 2011/05/05
- Re: proposed support for C1X-style static_assert, Bruno Haible, 2011/05/05
- Re: proposed support for C1X-style static_assert, Paul Eggert, 2011/05/05
- Re: proposed support for C1X-style static_assert, Paul Eggert, 2011/05/06
- Re: proposed support for C1X-style static_assert,
Bruno Haible <=
- Re: proposed support for C1X-style static_assert, Paul Eggert, 2011/05/22
- Re: proposed support for C1X-style static_assert, Bruno Haible, 2011/05/29
- Re: proposed support for C1X-style static_assert, Paul Eggert, 2011/05/29
- Re: proposed support for C1X-style static_assert, Bruno Haible, 2011/05/29
Re: proposed support for C1X-style static_assert, Andy Moreton, 2011/05/06