Skip to content
GitLab
Projects Groups Topics 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
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 168
    • Issues 168
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • 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
  • #888
Closed
Open
Issue created Nov 17, 2014 by Jochen Burghardt@burghardt

definition of virtual function in subclass causes crash

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


Id Project Category View Due Date Updated
ID0001973 Frama-Clang Plug-in > clang public 2014-11-17 2015-02-15
Reporter Jochen Assigned To virgile Resolution fixed
Priority normal Severity crash Reproducibility always
Platform frama-c-Neon-20140301+dev-stance OS - OS Version xubuntu-cfe13.10
Product Version - Target Version - Fixed in Version -

Description :

output:

Now output intermediate result 137.cpp:5:[fclang] failure: No usable assign operator for ::Rectangle [kernel] Current source was: 137.cpp:5 The full backtrace is: Raised at file "src/kernel/log.ml", line 524, characters 30-31 Called from file "src/kernel/log.ml", line 518, characters 9-16 Re-raised at file "src/kernel/log.ml", line 521, characters 15-16 Called from file "src/frama-clang/convert.ml", line 1660, characters 30-71 Called from file "src/frama-clang/convert.ml", line 1683, characters 15-39 Called from file "list.ml", line 74, characters 24-34 Called from file "src/frama-clang/convert.ml", line 1686, characters 14-50 Called from file "src/frama-clang/convert.ml", line 1921, characters 21-142 Called from file "list.ml", line 74, characters 24-34 Called from file "src/frama-clang/convert.ml", line 1998, characters 19-78 Called from file "src/frama-clang/convert.ml", line 2262, characters 21-48 Called from file "list.ml", line 74, characters 24-34 Called from file "src/frama-clang/convert.ml", line 2266, characters 4-79 Called from file "src/frama-clang/frama_Clang_register.ml", line 86, characters 13-36 Called from file "src/kernel/file.ml", line 1073, characters 10-43 Called from file "src/kernel/file.ml", line 1117, characters 23-30 Called from file "list.ml", line 74, characters 24-34 Called from file "src/kernel/file.ml", line 1114, characters 6-520 Called from file "src/kernel/file.ml", line 2179, characters 12-30 Called from file "src/kernel/file.ml", line 2264, characters 4-27 Called from file "src/kernel/ast.ml", line 111, characters 2-28 Called from file "src/kernel/ast.ml", line 123, characters 53-71 Called from file "src/kernel/boot.ml", line 29, characters 6-20 Called from file "src/kernel/cmdline.ml", line 761, characters 2-9 Called from file "src/kernel/cmdline.ml", line 216, characters 4-8

     Plug-in fclang aborted: internal error.
     Please report as 'crash' at http://bts.frama-c.com/.
     Your Frama-C version is Neon-20140301+dev-stance.

The problem disappears if (1) the "virtual" is removed in line 6, or (2) a copy of line 6 is inserted after line 2; the problem remains if (3) "area" is declared in class "Rectangle", too, but not as "virtual".

Attachments

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