981005 on Alpha has new const bug ?
Mark Mitchell
mark@markmitchell.com
Sat Oct 10 14:35:00 GMT 1998
>>>>> "David" == David C Binderman <dcb@pncl.co.uk> writes:
David> Hello there,
David> I'm a bit surprised to see that the following code, when
David> compiled by the G++ compiler in egcs-981005 on Linux/ Alpha
David> EV56 produces no error or warning messages.
David> Previous snapshots used to, and I think they were correct.
David> typedef const int ci; typedef ci aci[ 10]; aci var = { 2,
David> 3, 5, 7, 11, 13 };
David> void f() { int * ip = var; // Error ? }
David> Regards
David> David C Binderman MSc BSc +44 1293 534847 dcb@pncl.co.uk
This is a bug. I will fix it as soon as Jeff approves at least the
portion of my `restrict' patch that deals with type qualifiers; some
infrastructure there will be useful.
--
Mark Mitchell mark@markmitchell.com
Mark Mitchell Consulting http://www.markmitchell.com
More information about the Gcc-bugs
mailing list