|
From: | Ben Pfaff |
Subject: | Re: gettext.h patch for portability to sunCC, pgCC, RHEL AS 4 g++ |
Date: | Wed, 25 Oct 2006 07:11:11 -0700 |
User-agent: | Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
Bruno Haible <address@hidden> writes: > + /* GCC supports variable-size arrays in C and C++ mode. > + ISO C++ supports variable-size arrays, but some older PGI and Sun > compilers > + don't. */ I don't understand this assertion that ISO C++ supports variable-size arrays. ISO C++98 shows the expression in an array-declarator to be a constant-expression (see section 8.3.4). If a later version of ISO C++ does support variable-size arrays--I don't have any later version of the standard--then why not test that __cplusplus is at least that version? -- "The road to hell is paved with convenient shortcuts." --Peter da Silva
[Prev in Thread] | Current Thread | [Next in Thread] |