This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ 2.95.2 voluntarily creates copies of const char arrays
- To: sebor at roguewave dot com
- Subject: Re: g++ 2.95.2 voluntarily creates copies of const char arrays
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- Date: Fri, 31 Mar 2000 16:18:44 -0600 (CST)
- CC: gcc-bugs at gcc dot gnu dot org
- Reply-to: rittle at rsch dot comm dot mot dot com
> 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