From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23221 invoked by alias); 1 May 2009 00:49:29 -0000 Received: (qmail 23199 invoked by uid 48); 1 May 2009 00:49:10 -0000 Date: Fri, 01 May 2009 00:49:00 -0000 Subject: [Bug c++/39987] New: [4.3/4.4/4.5 Regression] Rejects default argument that is a template via access failure X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu 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: 2009-05/txt/msg00001.txt.bz2 Like PR 37971 but this time Find is a template member function instead of just a member function. Testcase: class foo { template static bool func(const U& x) {} public: template unsigned int Find(const U& x, bool (*pFunc) (const U&) = func) const {} }; class bar { bool Initialize(); protected: foo b; }; bool bar::Initialize() { b.Find(b); } -- Summary: [4.3/4.4/4.5 Regression] Rejects default argument that is a template via access failure Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39987