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++/53524] [4.7/4.8 Regression] Bogus and unsupressable enum comparison warning


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53524

Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-05-30
                 CC|                            |manu at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #4 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-05-30 07:57:59 UTC ---
That input_location is pointing to something so bogus makes me think that
something weird is going on. In any case, it would be interesting to know why
same_type fails a few lines above, and whether it is true that g++ is not doing
the two-phase typing properly.

The following also warns, so the type of the enum values does not seem to be
the issue:

    N2 = 0 ? PointerLikeTypeTraits < PT1 >::NumLowBitsAvailable :
PointerLikeTypeTraits < PT2 >::NumLowBitsAvailable,


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