Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8300

Cannot create class with static var in prompt

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.08/00
    • Component/s: Cling
    • Labels:
      None
    • Environment:

      Any

      Description

      class B {   public: static void *fgStaticVar; };

      gives

      ROOT_prompt_1:1:34: error: static data member 'fgStaticVar' not allowed in local class 'B'
      class B {   public: static void *fgStaticVar; };
                                       ^

        Attachments

          Activity

            People

            Assignee:
            axel Axel Naumann
            Reporter:
            axel Axel Naumann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: