This is the mail archive of the
mailing list for the GCC project.
Re: Make declaration of wide_int_storage match its definition
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Andrew Pinski <pinskia at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Kenneth Zadeck <zadeck at naturalbridge dot com>, Mike Stump <mikestump at comcast dot net>, Richard Sandiford <rdsandiford at googlemail dot com>
- Date: Sat, 5 Jul 2014 21:25:50 +0200 (CEST)
- Subject: Re: Make declaration of wide_int_storage match its definition
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot LSU dot 2 dot 11 dot 1407052036320 dot 30120 at tuna dot site> <1825A72A-86F8-4998-8D25-B96A84305C70 at gmail dot com>
On Sat, 5 Jul 2014, email@example.com wrote:
> This patch is fine but c++ allows class and struct be used
> interchangeable. If there is a compilers which does not it is broken
> and should be report to them. Yes that means clang is broken.
Clang does allow for it (it actually is the stage 1 compiler on
FreeBSD 10, the platform I used for my tests); it just warns about
it. About 400 times.
That was just one, factor, though. Declarations being consistent
with definitions stroke me as A Good Thing[tm] per se. :-)