lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] 'zero_test.cpp' crashes clang++ with '-O2 -ffp-model=strict'


From: Vadim Zeitlin
Subject: Re: [lmi] 'zero_test.cpp' crashes clang++ with '-O2 -ffp-model=strict'
Date: Sat, 25 Jun 2022 23:37:50 +0200

On Sat, 25 Jun 2022 20:22:18 +0000 Greg Chicares <gchicares@sbcglobal.net> 
wrote:

GC> [effective workaround given below]
GC> 
GC> Using...
GC> 
GC>   $ clang++ --version      
GC>   Debian clang version 13.0.1-6
GC>   Target: x86_64-pc-linux-gnu
GC>   Thread model: posix
GC>   InstalledDir: /usr/bin
GC> 
GC> ...this crashes clang++:
GC> 
GC> $ clang++ -c -I . -fPIC -ffp-model=strict -std=c++20 -O2 
-Wno-string-plus-int zero_test.cpp -ozero_test.o 2>&1 |less -S

 FWIW this exact command line works for me with Debian clang version
14.0.5-1 from Debian experimental, even though I can confirm that it exits
with an internal compiler error when using clang version from above, so it
looks like this is "just" a compiler bug and has been already fixed.

 Regards,
VZ

Attachment: pgpxhCq2QWwkn.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]