------- Comment #4 from pinskia at gcc dot gnu dot org 2008-01-19 12:07 ------- Oh, in C++, const_var is a constant integral expression after all so that is why it is accepted with C++ front-end, I had forgot the exact rules for C++ for a second there.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34830