This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/68612] Const-compatibility in C
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 30 Nov 2015 04:33:19 +0000
- Subject: [Bug c/68612] Const-compatibility in C
- Auto-submitted: auto-generated
- References: <bug-68612-4 at http dot gcc dot gnu dot org/bugzilla/>
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.