const error

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Mon Jan 10 16:03:00 GMT 2000


> 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


More information about the Gcc-bugs mailing list