Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 336
    • Issues 336
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2060

Closed
Open
Created Oct 14, 2008 by Daniel Rolls@dsrGuest

No warning and a seg fault when incorrectly using pragma effect on a constructor to affect the object itself

Bugzilla Link 457
Created on Oct 14, 2008 17:59
Resolution FIXED
Resolved on Feb 23, 2009 20:00
Version 1.00beta
OS Linux
Architecture PC
Attachments GnuPlot.sac

Extended Description

Created an attachment (id=495)
A class with a constructor that calls itself
Incorrect code of the following form
external Class Constructor(  );
  #pragma effect Class::Object
  #pragma linkobj "class.o"
causes an infinite loop since the "pragma effect" causes the constructor to recursively call itself. The compiler not only doesn't warn about this: it seg faults when it presumably runs out of memory.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking