This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/61339] add mismatch between struct and class to non-bugs
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 28 May 2014 10:44:06 +0000
- Subject: [Bug c/61339] add mismatch between struct and class to non-bugs
- Auto-submitted: auto-generated
- References: <bug-61339-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61339
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-05-28
CC| |manu at gcc dot gnu.org
Summary|wide-int.h: 3 * mismatched |add mismatch between struct
|tags |and class to non-bugs
Ever confirmed|0 |1
Severity|minor |enhancement
--- Comment #2 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #1)
> This is a really stupid warning that only exists because the MS compiler has
> (or had) a bug that treats 'struct' and 'class' differently. GCC (and Clang)
> correctly implement the C++ standard which says it doesn't matter.
I don't think patches that fix the mismatch will be rejected, but also don't
expect someone else to care enough to write them and submit them.
On the other hand, it would be handy to keep this around as a reminder to add
this to the list of non-bugs for future reference:
https://gcc.gnu.org/bugs/#nonbugs
And also in case someone is actually interested in adding this warning (perhaps
it could be enabled by -fms-extensions).