[Bug 246879] New: g++ 4.2.0: invalid conversion from ‘int’ to ‘const char*’
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.
https://bugzilla.novell.com/show_bug.cgi?id=246879 ------- Comment #1 from mvidner@novell.com 2007-02-20 03:28 MST ------- Created an attachment (id=120047) --> (https://bugzilla.novell.com/attachment.cgi?id=120047&action=view) test.tar.bz2 test/ test/test.cc test/test.ii test/GNUmakefile -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=246879 rguenther@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|matz@novell.com |dmueller@novell.com ------- Comment #2 from rguenther@novell.com 2007-02-20 07:09 MST ------- This is a problem with -ffortify=2. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=246879 ------- Comment #3 from rguenther@novell.com 2007-02-20 07:11 MST ------- # g++ -S -ffortify=2 test.ii -m32 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*' # g++ -S test.ii -m32 # g++ --version g++ (GCC) 4.2.0 20070130 (prerelease) (SUSE Linux) -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=246879 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=246879 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #4 from dmueller@novell.com 2007-03-07 09:33 MST ------- this should be fixed in the latest BETA compiler -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=246879 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | ------- Comment #5 from dmueller@novell.com 2007-03-14 04:14 MST ------- hmm, not. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=246879 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED ------- Comment #6 from dmueller@novell.com 2007-04-12 10:13 MST ------- now it is. -- 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.
participants (1)
-
bugzilla_noreply@novell.com