<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - -Wfloat-conversion error message formatting error"
   href="https://bugs.llvm.org/show_bug.cgi?id=39820">39820</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-Wfloat-conversion error message formatting error
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jyrki.havia@helsinki.fi
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Given code

[havia@villikani colld]$ cat k.c
int main(void)
{
        double a = 3.0;
        long b = 2;

        b /= a;

        return 0;
}

[havia@villikani colld]$ clang-8 -Weverything  k.c
k.c:6:4: warning: implicit conversion turns floating-point number into integer:
'long' to 'double' [-Wfloat-conversion]
        b /= a;
        ~~^~~~
1 warning generated.

  Shouldn't the end of the message be
  "'double' to 'long'" instead of "'long' to 'double'"?

clang-8 is localy compiled

[havia@villikani colld]$ clang-8 -v
clang version 8.0.0 (trunk 345705)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/llvm/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.2
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5
Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64

  The environment is

[havia@villikani colld]$ lsb_release 
LSB Version:   
:core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch

[havia@villikani colld]$ cat /etc/redhat-release 
CentOS Linux release 7.5.1804 (Core) 
[havia@villikani colld]$</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>