g++ 2.95.2 voluntarily creates copies of const char arrays
Loren James Rittle
rittle@latour.rsch.comm.mot.com
Fri Mar 31 14:19:00 GMT 2000
> g++ appears to create copies of character arrays when they are being
> passed to template functions.
I can confirm that the problem exists in 2.95.X. However, it has been
fixed in the main line compiler as built yesterday.
; /usr/local/bin/g++ t9.C; echo <=a.out
1
; /usr/local/beta-gcc/bin/g++ t9.C; echo <=a.out
0
Regards,
Loren
More information about the Gcc-bugs
mailing list