Bug 213477 - fails to build - Overloading ambiguity
Summary: fails to build - Overloading ambiguity
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: messageviewer (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-06 22:28 UTC by tropikhajma
Modified: 2009-12-27 22:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch (699 bytes, patch)
2009-11-07 00:13 UTC, tropikhajma
Details
patch2 (643 bytes, patch)
2009-11-07 00:14 UTC, tropikhajma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tropikhajma 2009-11-06 22:28:41 UTC
Version:           4.3.73 (using Devel)
Compiler:          Sun Studio 12 U1 
OS:                Solaris
Installed from:    Compiled sources

kdepim 4.3.73 fails to build with
...
"/export/home/hajma/packages/BUILD/kdepim-4.3.73svn1040395/messageviewer/objecttreeparser.cpp", line 1811: Error: Overloading ambiguity between "built-in operator*(const char*)" and "built-in operator*(const void*)".
Comment 1 tropikhajma 2009-11-06 23:14:18 UTC
and the same a few files later: 
"/export/home/hajma/packages/BUILD/kdepim-4.3.73svn1040395/kmail/objecttreeparser.cpp", line 1816: Error: Overloading ambiguity between "built-in operator*(const char*)" and "built-in operator*(const void*)".
Comment 2 tropikhajma 2009-11-07 00:13:33 UTC
Created attachment 38149 [details]
patch
Comment 3 tropikhajma 2009-11-07 00:14:21 UTC
Created attachment 38150 [details]
patch2

these patches make it compile, though I am not sure if it's the best approach
Comment 4 Allen Winter 2009-11-07 16:08:26 UTC
SVN commit 1046112 by winterz:

Fix compile with Sun Studio 12 - overloading ambiguity.
also clean up a few compile warnings
BUG: 213477


 M  +37 -37    objecttreeparser.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1046112
Comment 5 groot 2009-12-27 22:11:22 UTC
SVN commit 1066759 by adridg:

Second half of patches.
BUG: 213477


 M  +1 -1      objecttreeparser.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1066759
Comment 6 Allen Winter 2009-12-27 22:37:34 UTC
SVN commit 1066769 by winterz:

a better fix for the second half of the "overloading ambuity bug"
Adriaan, please double-check that this compiles ok with Sun Studio.
CCBUG: 213477



 M  +1 -1      objecttreeparser.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1066769