Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F frama-c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pub
  • frama-c
  • Issues
  • #286
Closed
Open
Created Jan 22, 2018 by Jens Gerlach@gerlach

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

  • nullptr_crash.cpp
  • nullptr_bool.cpp
  • nullptr_no_crash.cpp
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking