Irritating oddity in g++ 2.95.2
Martin v. Loewis
martin@mira.isdn.cs.tu-berlin.de
Tue Nov 30 23:39:00 GMT 1999
> I just stumbled across this "feature" in g++ 2.95.2. I don't know
> whether it's standard behaviour or not, but it seems completely
> ridiculous:
Thanks for your bug report. The code you use is not standard; gcc
-pedantic says
a.cc: In function `int main()':
a.cc:20: warning: ANSI C++ forbids assignment of arrays
I'm not sure what you mean by "completely ridiculous": That you can
assign arrays in gcc, or that it requires exact same types on the left
and on the right hand side.
Regards,
Martin
More information about the Gcc-bugs
mailing list