From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3018 invoked by alias); 22 Jul 2005 00:18:16 -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 2997 invoked by uid 48); 22 Jul 2005 00:18:09 -0000 Date: Fri, 22 Jul 2005 00:34:00 -0000 Message-ID: <20050722001809.2996.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/msg02652.txt.bz2 List-Id: ------- Additional Comments From bangerth at dealii dot org 2005-07-22 00:18 ------- Oh, I apparently didn't read closely enough. I see the problem now. For others -- take this: --------------------- template void f(T) {} template void f(T) {} template void f (int); --------------------- We want the first function to be instantiated, but both functions match the signature and gcc (as well as icc) instantiate the second: g/x> c++ -c x.cc g/x> nm -C x.o 00000000 W void f(int) I remember that there was a PR on this somewhere in bugzilla, and possibly a DR on this. I don't remember the conclusion, though... W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22596