From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23951 invoked by alias); 21 Jan 2007 05:23:54 -0000 Received: (qmail 23912 invoked by uid 48); 21 Jan 2007 05:23:44 -0000 Date: Sun, 21 Jan 2007 05:23:00 -0000 Message-ID: <20070121052344.23911.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/30281] [reject valid?] type deduction fails. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "bangerth at dealii dot org" 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: 2007-01/txt/msg01626.txt.bz2 ------- Comment #3 from bangerth at dealii dot org 2007-01-21 05:23 ------- Here's an even simpler testcase that shows the same problem (even if the error message is different): ------------- struct a { int g(void); }; struct b : a { }; void test() { static_cast (&b::g); } ------------------ g/x> c++ -c x.cc x.cc: In function 'void test()': x.cc:10: error: invalid static_cast from type 'int (a::*)()' to type 'int (b::*)()const' In any case, this is a duplicate of PR 17359. W. *** This bug has been marked as a duplicate of 17359 *** -- bangerth at dealii dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bangerth at dealii dot org Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30281