This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Irritating oddity in g++ 2.95.2
- To: rankinc at zip dot com dot au
- Subject: Re: Irritating oddity in g++ 2.95.2
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Mon, 8 Nov 1999 00:48:47 +0100
- CC: bug-gcc at gnu dot org
- References: <199911071059.VAA05954@WellHouse.zip.com.au>
> 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