From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25024 invoked by alias); 21 Jul 2005 23:18:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 25000 invoked by uid 48); 21 Jul 2005 23:17:57 -0000 Date: Thu, 21 Jul 2005 23:19:00 -0000 Message-ID: <20050721231757.24999.qmail@sourceware.org> From: "bangerth at dealii dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050721184642.22596.phenning@lanl.gov> References: <20050721184642.22596.phenning@lanl.gov> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/22596] Impossible to explicitly instantiate particular overloaded function X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg02646.txt.bz2 List-Id: ------- Additional Comments From bangerth at dealii dot org 2005-07-21 23:17 ------- Your explicit instantiation template int foo< A_class >(A_class a); obviously matches both the declarations of foo. I'm unsure which one the compiler should choose, but if you want to instantiate the second one, why don't you write template int foo< A_class,int >(A_class a); i.e. explicitly state the second template argument as well? W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22596