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: Irritating oddity in g++ 2.95.2


> 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


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