<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>291912</bug_id>
          
          <creation_ts>2012-01-19 00:13:19 +0000</creation_ts>
          <short_desc>qsqrt ambiguity</short_desc>
          <delta_ts>2012-03-04 22:08:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kgeography</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Solaris</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="tropikhajma">tropikhajma</reporter>
          <assigned_to name="Albert Astals Cid">aacid</assigned_to>
          <cc>lauranger</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>4.8.1</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1216229</commentid>
    <comment_count>0</comment_count>
      <attachid>67985</attachid>
    <who name="tropikhajma">tropikhajma</who>
    <bug_when>2012-01-19 00:13:19 +0000</bug_when>
    <thetext>Created attachment 67985
patch

Version:           unspecified (using Devel) 
OS:                Solaris

build of kgeography 4.7.97 fails with the below error.
The attached patch fixes it for me

Reproducible: Always

Steps to Reproduce:
try to build it

Actual Results:  
line 89: Error: Overloading ambiguity between &quot;std::sqrt(double)&quot; and &quot;std::sqrt(float)&quot;.


Expected Results:  
builds ok

Solaris 11, Solaris Studio 12.3, x86</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217533</commentid>
    <comment_count>1</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2012-01-22 15:02:45 +0000</bug_when>
    <thetext>Git commit 3661d037a4f2ddaf875fbb660a632a3b7e56a148 by Albert Astals Cid.
Committed on 22/01/2012 at 16:02.
Pushed by aacid into branch &apos;master&apos;.

Get rid of ambiguity by casting to double

M  +1    -1    src/placemapwidget.cpp

http://commits.kde.org/kgeography/3661d037a4f2ddaf875fbb660a632a3b7e56a148</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217535</commentid>
    <comment_count>2</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2012-01-22 15:03:13 +0000</bug_when>
    <thetext>Git commit e9b303a1a6581b81f81c0af2613eb76464ff4967 by Albert Astals Cid.
Committed on 22/01/2012 at 16:02.
Pushed by aacid into branch &apos;KDE/4.8&apos;.

Get rid of ambiguity by casting to double
(cherry picked from commit 3661d037a4f2ddaf875fbb660a632a3b7e56a148)

M  +1    -1    src/placemapwidget.cpp

http://commits.kde.org/kgeography/e9b303a1a6581b81f81c0af2613eb76464ff4967</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>67985</attachid>
            <date>2012-01-19 00:13:19 +0000</date>
            <delta_ts>2012-01-19 00:13:19 +0000</delta_ts>
            <desc>patch</desc>
            <filename>kgeography-sqrt.diff</filename>
            <type>text/plain</type>
            <size>560</size>
            <attacher name="tropikhajma">tropikhajma</attacher>
            
              <data encoding="base64">LS0tIHNyYy9wbGFjZW1hcHdpZGdldC5jcHAub3JpZwlUaHUgSmFuIDE5IDAwOjA1OjE0IDIwMTIK
KysrIHNyYy9wbGFjZW1hcHdpZGdldC5jcHAJVGh1IEphbiAxOSAwMDowODowMiAyMDEyCkBAIC0y
MCw3ICsyMCw3IEBACiAKICNpbmNsdWRlIDxrbG9jYWxlLmg+CiAjaW5jbHVkZSA8a2RlYnVnLmg+
Ci0jaW5jbHVkZSA8bWF0aC5oPgorI2luY2x1ZGUgPHFtYXRoLmg+CiAKICNpbmNsdWRlICJkaXZp
c2lvbi5oIgogCkBAIC04Niw3ICs4Niw3IEBACiB7CiAJaW50IG5iQ2VsbHMgPSBzdGF0cy5zaXpl
KCk7IC8vID0gbiAqIChuKjEpIC8gMiA9PiAycCA9PSBuMiArIG4gPT4gbjIgKyBuIC0ycCA9PSAw
CiAJLy8gZGVsdGEgPSAxICsgOHAgLT4gbiA9ICgtMSArLy0gc3FydCgxICsgOHApKS8yCi0JaW50
IG5iUm93cyA9IChzcXJ0KDEgKyA4ICogbmJDZWxscykgLTEpIC8yOworCWludCBuYlJvd3MgPSAo
cVNxcnQoMSArIDggKiBuYkNlbGxzKSAtMSkgLzI7CiAJUVN0cmluZyByZXQ7CiAJcmV0ICs9ICJc
biI7CiAJcmV0LnJlc2VydmUoMTcgKiBuYkNlbGxzICsgbmJSb3dzICogMjApOwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>