From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27363 invoked by alias); 25 May 2010 17:09:40 -0000 Received: (qmail 25752 invoked by uid 48); 25 May 2010 17:09:11 -0000 Date: Tue, 25 May 2010 17:09:00 -0000 Message-ID: <20100525170911.25751.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/44267] SFINAE does not handle down static_cast over virtual inheritance In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "cjoldfield at gmail 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: 2010-05/txt/msg02867.txt.bz2 ------- Comment #2 from cjoldfield at gmail dot com 2010-05-25 17:09 ------- Intel 11.1 accepts it, but it doesn't even try to instantiate "one &f(...)". To see what I mean, try replacing main with: #include int main() { std::cout << sizeof(f(0)) << std::endl; std::cout << sizeof(f(0)) << std::endl; std::cout << sizeof(f(0)) <(0) for all three calls (it should match the second). In this situation, gcc only complains about the first and the last, which is the expected behavior. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44267