[Bug c/68612] Const-compatibility in C
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 30 04:33:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68612
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
From https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17654#c7 :
That way at present is to use the C++ compiler, if you want the C++
const-correctness rules. Such a change was proposed for C99 in
<http://www.open-std.org/JTC1/SC22/WG14/www/docs/n754.htm>. I do not know
why it was not adopted although the impression I get is that it was
proposed too late in the process and there wasn't enough time at the
relevant meeting. I would suggest it might be worth proposing such a
change again when features for C1x are under consideration in some years'
time; C++ provides the prior art.
So there are two points in this bug report. One add the extension to GCC and
the other is fix the C standard.
We are not going to accept it as an extension I don't think though. So you
should see what is going on the C standard side of things.
More information about the Gcc-bugs
mailing list