[Bug c++/50508] [C++0x] ICE cxx_eval_logical_expression cp/semantics.c:6487 4.61/4.7 converting std::intergal_constant to bool with &&

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Sep 24 16:42:00 GMT 2011


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-09-24 16:23:30 UTC ---
reduced

template <class T>
  struct integral_constant {
    typedef T value_type;
    constexpr operator value_type() { return true; }
  };


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



More information about the Gcc-bugs mailing list