Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    I have faced a very similar situation, and it made me put this question here on SO Commented Oct 4, 2009 at 19:36
  • 2
    static SomeClass s(); is a function declaration Commented Dec 29, 2015 at 4:43
  • @M.M static SomeClass s(); is illegal in this context, you can't declare a static function inside another function. Commented Mar 11, 2024 at 15:20
  • @AykhanHagverdili it is still a function declaration syntactically, even though an error after semantic analysis Commented Mar 12, 2024 at 1:38