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]

[Bug c/61339] add mismatch between struct and class to non-bugs


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).

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