Web lists-archives.com

Re: Bug report. Clang sqrtl(-1) causes access violation

Agner Fog, on Friday, May 10, 2019 04:55 PM, wrote...

>$ uname -a
>CYGWIN_NT-10.0 DESKTOP-08PNUTF 3.0.6(0.338/5/3) 2019-04-06 16:18 x86_64
>$ clang --version
>clang version 5.0.1 (tags/RELEASE_501/final)
>Target: x86_64-unknown-windows-cygnus
>Thread model: posix
>InstalledDir: /usr/bin

You are correct.  There is a problem with the x86_64.  I was trying on a 32bit system which does not fail.  But, on my x86_64, I am witnessing the same behaviour you reported.  So, now, let's see what the developers say.  Thanks.

$ clang sqrt.cpp

jcabrera@elimelec /cygdrive/c/source/c++/test
$ ls
a.exe  sqrt.cpp

jcabrera@elimelec /cygdrive/c/source/c++/test
$ ./a.exe
Segmentation fault (core dumped)

jcabrera@elimelec /cygdrive/c/source/c++/test
$ uname -a
CYGWIN_NT-10.0 elimelec 3.0.7(0.338/5/3) 2019-04-30 18:08 x86_64 Cygwin

jcabrera@elimelec /cygdrive/c/source/c++/test
$ clang --version
clang version 5.0.1 (tags/RELEASE_501/final)
Target: x86_64-unknown-windows-cygnus
Thread model: posix
InstalledDir: /usr/bin


Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple