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: unassig...@gcc.gnu.org ReportedBy: fuchsia.gr...@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>();