Fwd: Re: c++/2988: Incorrect error on assignment of const char[] to char *

Richard Smith ros@tao-group.com
Tue May 29 05:46:00 GMT 2001


I'm afraid I attached the demo to this PR after amending it, and am unable to
correct it.  Line 9 should be changed from

args[1] = (flags==0) ? (char *)"-n" : (char *)"-p";

to

args[1] = (flags==0) ? "-n" : "-p";

My apologies!

-- 
Regards,
Richard Smith



More information about the Gcc-bugs mailing list