Skip to content

direct initialisation of bool by nullptr

ID0002347: This issue was created automatically from Mantis Issue 2347. Further discussion may take place here.


Id Project Category View Due Date Updated
ID0002347 Frama-C Plug-in > clang public 2018-01-22 2018-01-23
Reporter jens Assigned To virgile Resolution open
Priority normal Severity crash Reproducibility always
Platform - OS - OS Version -
Product Version Frama-C GIT, precise the release id Target Version - Fixed in Version -

Description :

The attached program "nullptr_crash.cpp" compiles without warnings with g++-7.2 in C++11 mode. Clang-5.0 issues a warning (and if I understood the standard correctly, it shouldn't, because the example uses "direct initialisation"). Frama-Clang crashes on the example.

The second example "nullptr_bool.cpp" which uses "copy initialisation" only warns about implicit conversion...

Attachments

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information