title: C++ calling a static function from another static function
body: <p>have a static function in a header file</p>
  
  <pre><code>    class Diagnostics {
      public:
  
  
      static void functionA(){
      }
  
      static void functionB(){
      some code //works fine until enters the loop below
      variable_name // works fine here.
      if (condition){ // 
      variable_name; // after condition is met , i step in here, debugger cannot examine
                     // the vairable_name which was fine above. right after i try to step                      over , i get SIGSEV error
      some_code; // doesnt even come here. Process exited with SIGSEV
      function C(); // tried using classname::functionC , didnt work either
  
          }
      }
  
  static void functionC(){
  }
  </code></pre>