This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4624: Bogus warning (private in aggregate types)
- From: Peter Schmid <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
- To: nathan at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, schmid at snake dot iap dot physik dot tu-darmstadt dot de, gcc-gnats at gcc dot gnu dot org
- Date: Sat, 15 Dec 2001 20:44:40 +0100 (CET)
- Subject: 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