[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gettext-0.18.1/gnulib: gettext-tools/tests/lang-c++ fails with gcc2.95
From: |
Christian Weisgerber |
Subject: |
gettext-0.18.1/gnulib: gettext-tools/tests/lang-c++ fails with gcc2.95 |
Date: |
Tue, 29 Jun 2010 23:42:25 +0200 |
User-agent: |
Mutt/1.4.2.3i |
As seen on OpenBSD/sparc, the gettext-tools/tests/lang-c++ check
fails to compile with gcc2.95:
In file included from ../gnulib-lib/sys/select.h:56,
from /usr/include/sys/types.h:224,
from /usr/include/stdio.h:45,
from ../gnulib-lib/stdio.h:35,
from prog.cc:13:
../gnulib-lib/string.h:497: syntax error before `('
../gnulib-lib/string.h:587: syntax error before `('
../gnulib-lib/string.h:829: syntax error before `('
FAIL: lang-c++
What happens is that declarations from gnulib-lib/string.in.h like
this one
_GL_FUNCDECL_SYS (rawmemchr, void *, (void const *__s, int __c_in)
__attribute__ ((__pure__))
_GL_ARG_NONNULL ((1)));
after preprocessing end up as
extern "C" void * rawmemchr (void const *__s, int __c_in)
__attribute__ (( ))
;
because __pure__ is defined away for gcc2.95. However,
__attribute__(( )) causes an error for C++ (but not for plain C).
--
Christian "naddy" Weisgerber address@hidden
- gettext-0.18.1/gnulib: gettext-tools/tests/lang-c++ fails with gcc2.95,
Christian Weisgerber <=