From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5869 invoked by alias); 3 Dec 2009 18:12:25 -0000 Received: (qmail 5780 invoked by uid 48); 3 Dec 2009 18:12:04 -0000 Date: Thu, 03 Dec 2009 18:12:00 -0000 Subject: [Bug c++/42266] New: [C++0x] ICE with decltype and variadic templates X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "paolo dot carlini at oracle dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-12/txt/msg00300.txt.bz2 I tried to reduce as much as possible (maybe too much, we'll see...) an issue which is blocking our work on std::bind. Note, the problem disappears if I simplify the testcase further to not use variadic templates while keeping the rest unchanged. Jason, can you help us? ////////////////// template class tuple; template class _Mu; template struct _Bind; template class _Bind<_Functor(_Bound_args...)> { template()(_Bound_args(), tuple<_Args...>())...) )> void __call() { } }; template _Bind<_Functor(_Arg)> bind(_Functor, _Arg) { } struct State { bool ready() { return true; } void f() { bind(&State::ready, this); } }; -- Summary: [C++0x] ICE with decltype and variadic templates Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: paolo dot carlini at oracle dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42266