Var length array's vs. const int
Joseph S. Myers
jsm28@cam.ac.uk
Sat Aug 11 11:08:00 GMT 2001
On Sat, 11 Aug 2001, Gordon Sadler wrote:
> The final sentence there is the relevant one. Is there some reason
> gcc doesn't consider 'const int' an integer constant expression when
Re-read 6.6, which defines integer constant expressions. Compare ISO/IEC
14882 subclause 5.19 [expr.const] which defines them for C++, and be
careful not to confuse C and C++ here.
--
Joseph S. Myers
jsm28@cam.ac.uk
More information about the Gcc
mailing list