[Bug c++/37047] Missing warning for deprecated use of static

2008-08-22 Thread manu at gcc dot gnu dot org


--- Comment #3 from manu at gcc dot gnu dot org  2008-08-23 02:48 ---
Where is the namespace scope in the example?


-- 

manu at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||manu at gcc dot gnu dot org


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



[Bug c++/37047] Missing warning for deprecated use of static

2008-08-22 Thread gcc-bugzilla at contacts dot eelis dot net


--- Comment #4 from gcc-bugzilla at contacts dot eelis dot net  2008-08-23 
02:58 ---
(In reply to comment #3)
 Where is the namespace scope in the example?

From the standard, 3.3.5p3:

  The outermost declarative region of a translation unit is
  also a namespace, called the global namespace.


-- 


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



[Bug c++/37047] Missing warning for deprecated use of static

2008-08-22 Thread manu at gcc dot gnu dot org


--- Comment #5 from manu at gcc dot gnu dot org  2008-08-23 04:02 ---
(In reply to comment #4)
 (In reply to comment #3)
  Where is the namespace scope in the example?
 
 From the standard, 3.3.5p3:
 
   The outermost declarative region of a translation unit is
   also a namespace, called the global namespace.
 

Then, I agree with Andrew. static is used all over the place.


-- 


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



[Bug c++/37047] Missing warning for deprecated use of static

2008-08-13 Thread bangerth at dealii dot org


--- Comment #2 from bangerth at dealii dot org  2008-08-13 16:31 ---
(In reply to comment #1)
 I don't think this is a good warning really as static is used all over the
 place.  In system headers and really in almost all C++ code in general.

The key is the phrase ...in a namespace scope.

W.


-- 

bangerth at dealii dot org changed:

   What|Removed |Added

 CC||bangerth at dealii dot org


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



[Bug c++/37047] Missing warning for deprecated use of static

2008-08-10 Thread pinskia at gcc dot gnu dot org


--- Comment #1 from pinskia at gcc dot gnu dot org  2008-08-10 23:36 ---
I don't think this is a good warning really as static is used all over the
place.  In system headers and really in almost all C++ code in general.


-- 


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