981005 on Alpha has new const bug ?
David C Binderman
dcb@pncl.co.uk
Sat Oct 10 09:51:00 GMT 1998
Hello there,
I'm a bit surprised to see that the following code, when compiled by
the G++ compiler in egcs-981005 on Linux/ Alpha EV56 produces no error
or warning messages.
Previous snapshots used to, and I think they were correct.
typedef const int ci;
typedef ci aci[ 10];
aci var = { 2, 3, 5, 7, 11, 13 };
void
f()
{
int * ip = var; // Error ?
}
Regards
David C Binderman MSc BSc +44 1293 534847 dcb@pncl.co.uk
More information about the Gcc-bugs
mailing list