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]

Re: c++/4624: Bogus warning (private in aggregate types)




On 15 Dec 2001 nathan@gcc.gnu.org wrote:

> Synopsis: Bogus warning (private in aggregate types)
> 
> State-Changed-From-To: open->closed
> State-Changed-By: nathan
> State-Changed-When: Sat Dec 15 11:24:25 2001
> State-Changed-Why:
>     I don't think it's bogus. all the user defined members
>     are private. The class is still POD.
>     
> 
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4624
> 

Mr John Maddock Implementor of the boost config test suite has a different
point of view. 
He says: "The compiler misreads 8.5.1, treating classes as non-aggregate
if they contain private or protected member functions.",
cf. boost/libs/config/test/boost_no_priv_aggregate.cxx.

Hope this helps.

Peter Schmid


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