This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: const error


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]