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 121
    • Issues 121
    • 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
  • #2991
Closed
Open
Created Apr 09, 2002 by Peter Bortas@zinoOwner

Warn about undefined local functions.

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

Reported by Martin Stjernholm mast@roxen.com

Consider:

    class A
    {
      local int a();
      void f() {werror ("%O\n", a());}
    }

    class B
    {
      inherit A;
      int a() {return 17;}
    }

    int main()
    {
      B()->f();
    }

The local modifier here doesn't have any effect; in 7.3 the call to a in f will be dynamically bound and the program prints "17" (in 7.2 it will fail with an obscure backtrace). I think a warning or perhaps even an error is in order in this case, instead of silently ignoring the local modifier. The same applies if local::a is used in the code somewhere in A.

Assignee
Assign to
Time tracking