This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/29365] Unnecessary anonymous namespace warnings



------- Comment #34 from pluto at agmk dot net  2007-08-28 19:40 -------
(In reply to comment #33)
> Fixed.
> 

one more testcase:

$ cat X.hpp
namespace { class Impl; }
struct X
{
        ~X();
        Impl* pimpl_;
};

$ cat X.cpp
#include "X.hpp"
X::~X()
{
}

$ g++ -Wall -c X.cpp
In file included from X.cpp:1:
X.hpp:3: warning: 'X' has a field 'X::pimpl_' whose type uses the anonymous
namespace

gcc version 4.2.2 20070828 


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]