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]

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


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


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