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++/50508] New: [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487 4.61/4.7 converting std::intergal_constant to bool with &&


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

             Bug #: 50508
           Summary: [C++0x] ICE cxx_eval_logical_expression
                    cp/semantics.c:6487 4.61/4.7 converting
                    std::intergal_constant to bool with &&
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: fuchsia.groan@virgin.net


/* This ICEd the official mingw 4.6.1 with: 'internal compiler error: in
cxx_eval_logical_expression at cp/semantics.c:6487'

(I had the same result on gcc 4.7.0 20110813 from www.equation.com)
*/
#include <type_traits>

static constexpr bool value = std::integral_constant<bool,true>()
                              && std::integral_constant<bool,true>();


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