--- On Tue, 2/24/09, David L <idht4n@xxxxxxxxx> wrote: > From: David L <idht4n@xxxxxxxxx> > Subject: f11 g++ behaviour > To: "For testers of Fedora Core development releases" <fedora-test-list@xxxxxxxxxx> > Received: Tuesday, February 24, 2009, 5:32 PM > This is a bit off topic, but it's something I noticed > when logged into my f11 partition. An application > fails to compile that used to compile with f10. > I've condensed the problem to this: > > #include <stdio.h> > #include <string.h> > int main(int argc, char *argv[]) > { > char *gr; > const char *pl="BlahHello world!"; > const char *gt="Hell"; > gr = strstr(pl, gt); > printf("%s\n", gr); > return 0; > } > > In f10, this compiles with g++. In f11, it compiles > with gcc, but not with g++. It fails with this error: > > test.cpp:8: error: invalid conversion from 'const > char*' to 'char*' > See https://www.redhat.com/archives/fedora-devel-list/2009-January/msg02248.html and https://www.redhat.com/archives/fedora-devel-list/2009-February/msg01576.html announcement and comment concerning this new behaviour. Deji __________________________________________________________________ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/ -- fedora-test-list mailing list fedora-test-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-test-list