http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47861

--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-02-24 
11:27:51 UTC ---
(In reply to comment #10)
>
> oo.cc:4:3: Warning: 'it' is declared as a function-scope 
> static, error prone, see static member variables

No, it is not "error prone" - it is valid C++, and even relied on by well-known
idioms such as the "Meyers Singleton"

Warning about it would be annoying and unhelpful.

> Honestly this would 
> be prevent if the compiler was going to search for the static var 
> definition.

I don't understand this sentence, sorry.

Reply via email to