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++/48107] [C++0x] no explicit conversion from scoped enumeration type to bool


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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jason at gcc dot gnu.org
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.1

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-08 15:14:57 UTC ---
Fixed by r172138

        PR c++/48450
        * c-family/c-common.c (c_common_truthvalue_conversion): Don't ignore
        conversion from C++0x scoped enum.
        * cp/cvt.c (ocp_convert): Handle converting scoped enum to bool.


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