From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13175 invoked by alias); 18 Jul 2009 10:02:21 -0000 Received: (qmail 7260 invoked by uid 48); 18 Jul 2009 10:02:07 -0000 Date: Sat, 18 Jul 2009 10:02:00 -0000 Message-ID: <20090718100207.7256.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/40793] "Error: no matching function for call to XYZ" doesn't display function-template-arguments In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jonathan dot sd24 at yahoo dot de" 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-07/txt/msg01479.txt.bz2 ------- Comment #2 from jonathan dot sd24 at yahoo dot de 2009-07-18 10:02 ------- When I explicitly specify the template-arguments g++ should know it. And there was no candidate-list. For example: template void staticPrint() { cout << t << endl; } Now I call: staticPrint(); I get: "no matching function for call to void staticPrint()" No candidates... And I would like to know, what's wrong with the template-arguments. Beleive me: You can spent hours with searching for the reason of such an error. -- jonathan dot sd24 at yahoo dot de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|WONTFIX | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793