Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pike pike
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 119
    • Issues 119
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pikelang
  • pikepike
  • Issues
  • #2511
Closed
Open
Created Nov 09, 2001 by Peter Bortas@zinoOwner

Detect missing parent in clone at compile time

Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2511

Reported by Martin Stjernholm mast@roxen.com

Consider the following program:

    class X {
      int i;
      class Y {int f() {return i;}}
    }

    int main() {
      X.Y y = X.Y();
    }

It will compile, but will fail at run time with "Parent lost, cannot clone program". Besides the somewhat misleading error message, I think this case ought to be catched already at compile time.

Assignee
Assign to
Time tracking