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

2007-08-29 Thread Gabriel Dos Reis
"Andrew Pinski" <[EMAIL PROTECTED]> writes: | On 29 Aug 2007 03:15:04 -, bangerth at dealii dot org | <[EMAIL PROTECTED]> wrote: | > It is a good question in itself whether pimpl_ has a type at all -- it's a | > pointer to an incomplete type in any case :-) | | All types in C++ are exported (

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

2007-08-29 Thread Andrew Pinski
On 29 Aug 2007 03:15:04 -, bangerth at dealii dot org <[EMAIL PROTECTED]> wrote: > It is a good question in itself whether pimpl_ has a type at all -- it's a > pointer to an incomplete type in any case :-) All types in C++ are exported (well except for anonymous namespace types) including inco

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

2007-08-28 Thread Andrew Pinski
On 28 Aug 2007 21:41:05 -, bangerth at dealii dot org <[EMAIL PROTECTED]> wrote: > That's what I thought too at first, but the request is valid anyway as long > as you never use the pointer to the class from anywhere except the one > implementation file in which the class is defined. No it is

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

2007-08-28 Thread Andrew Pinski
On 28 Aug 2007 19:40:14 -, pluto at agmk dot net <[EMAIL PROTECTED]> wrote: > > > --- 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();