Package: gettext Version: 0.17-7 Severity: important Hi,
compiling #include "/usr/share/gettext/gettext.h" int main() { return 0; } with g++ -pedantic results in: /usr/share/gettext/gettext.h: In function ‘const char* dcpgettext_expr(const char*, const char*, const char*, int)’: /usr/share/gettext/gettext.h:201: error: ISO C++ forbids variable length array ‘msg_ctxt_id’ /usr/share/gettext/gettext.h: In function ‘const char* dcnpgettext_expr(const char*, const char*, const char*, const char*, long unsigned int, int)’: /usr/share/gettext/gettext.h:247: error: ISO C++ forbids variable length array ‘msg_ctxt_id’ I work around it by using #define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS \ - (((__GNUC__ >= 3 || __GNUG__ >= 2) && !__STRICT_ANSI__) \ + (((__GNUC__ >= 3 || __GNUG__ >= 2) && !__STRICT_ANSI__) && !__cplusplus \ but detecting a macro which is set in pedantic mode is probably better. Jens -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org