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: g++ 2.95.2 voluntarily creates copies of const char arrays



> 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

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