This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: const error
- To: Manuel dot Sequeira at iscte dot pt
- Subject: Re: const error
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Tue, 11 Jan 2000 00:56:43 +0100
- CC: egcs-bugs at egcs dot cygnus dot com
- References: <387A12C5.868BC327@iscte.pt>
> I think the compiler should issue an error, since the elements of m are
> const.
Thanks for your bug report. gcc-2.95.2 says
a.cc: In function `void f(const int (&)[2])':
a.cc:2: assignment of read-only location
so the bug has been fixed.
Regards,
Martin