From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12325 invoked by alias); 2 Sep 2005 22:52:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 11998 invoked by uid 48); 2 Sep 2005 22:51:53 -0000 Date: Fri, 02 Sep 2005 22:52:00 -0000 Message-ID: <20050902225153.11997.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050902090119.23691.caolanm@redhat.com> References: <20050902090119.23691.caolanm@redhat.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/23691] [4.0 Regression] `mpl_::bool_::value' is not a valid template argument for type `bool' because it is a non-constant expression X-Bugzilla-Reason: CC X-SW-Source: 2005-09/txt/msg00304.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-02 22:51 ------- Confirmed and htere is the reduced testcase: namespace std { class type_info { bool operator==(const type_info& __arg) const; }; } template struct integral_constant { static const T value = val; }; template< typename T > struct is_integral : integral_constant {}; template struct enable_if_c {}; template typename enable_if_c<(is_integral::value)>::type operator==(const int& f, Functor g); template int get_deleter( std::type_info const & ti ) { return ti == typeid(D); } The different between this and PR 23698 is indirectness of value in is_integral, this one goes though a base class while the other one does not. This test unlike the one in PR 23698 is accepted Comeau. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2005-09-02 22:51:51 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23691