
https://bugzilla.novell.com/show_bug.cgi?id=246879 Summary: g++ 4.2.0: invalid conversion from ‘int’ to ‘const char*’ Product: openSUSE 10.3 Version: Alpha 1 Platform: All OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: matz@novell.com ReportedBy: mvidner@novell.com QAContact: qa@suse.de I believe that the g++ in BETA has a bug. The attached test case is extracted from yast2-core and produces this error: valkyrie:/usr/src/packages/BUILD/yast2-core-2.15.3/base/tools/ycpc$ make test.o g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../libycp/src/include -I../../../liby2/src/include -I../../../libyui/src/include -I../../../libscr/src/include -I../../../wfm/src -I/usr/include/YaST2 -DY2LOG=\"libycp\" -DNDEBUG -E -o test.ii test.cc g++ -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -ffortify=2 -fstack-protector -Wall -Wformat -c -o test.o test.ii test.cc: In function ‘int printcode(const char*, const toStringAble&) [with toStringAble = YCPValue]’: test.cc:70: instantiated from here test.cc:46: error: invalid conversion from ‘int’ to ‘const char*’ make: *** [test.o] Error 1 If I comment out the definition and use of the macro "progress", it compiles fine. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.