From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25358 invoked by alias); 23 Jan 2003 15:06:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 25343 invoked by uid 71); 23 Jan 2003 15:06:01 -0000 Date: Thu, 23 Jan 2003 15:06:00 -0000 Message-ID: <20030123150601.25342.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: c++/7136: Template constants deduction Reply-To: Wolfgang Bangerth X-SW-Source: 2003-01/txt/msg01365.txt.bz2 List-Id: The following reply was made to PR c++/7136; it has been noted by GNATS. From: Wolfgang Bangerth To: "Philippe A. Bouchard" Cc: gcc-bugs@gcc.gnu.org, Subject: Re: c++/7136: Template constants deduction Date: Thu, 23 Jan 2003 09:03:30 -0600 (CST) On Thu, 23 Jan 2003, Philippe A. Bouchard wrote: > Yes you're right but the following won't work either under gcc 2.95: > > struct Type > { > int i; > }; > > template > struct Number {}; > > template > void foo(Number<_T, _I> const &) > { > } > > int main() > { > foo(Number()); > } > > Returns: > template.cpp: In function `int main()': > template.cpp:15: no matching function for call to `foo > (Number)' True, but there's not much that we can do about it: that's simply a bug in gcc2.95 that was fixed in 3.0. gcc2.95 is not maintained any more, so I fear that you will have to find a workaround for gcc2.95. W. ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ticam.utexas.edu www: http://www.ticam.utexas.edu/~bangerth/