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

Cannot create class with static var in prompt

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • None
    • 6.08/00
    • Cling
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: