From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28925 invoked by alias); 23 Mar 2005 10:51:45 -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 28875 invoked by uid 48); 23 Mar 2005 10:51:38 -0000 Date: Wed, 23 Mar 2005 10:51:00 -0000 Message-ID: <20050323105138.28874.qmail@sourceware.org> From: "giovannibajo at libero dot it" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040410193158.14912.schnetter@aei.mpg.de> References: <20040410193158.14912.schnetter@aei.mpg.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/14912] Do not print default template arguments in error messages X-Bugzilla-Reason: CC X-SW-Source: 2005-03/txt/msg02698.txt.bz2 List-Id: ------- Additional Comments From giovannibajo at libero dot it 2005-03-23 10:51 ------- The first non-trivial issue is that, in order to print "std::vector" instead of "std::vector >", we need to do the template substitution at error printing time, and check if the resulting substitution match. Either that, or I need to mark template arguments with a flag if they come from the template-id. Also, should we skip default arguments also in lines like this: test.cc: In member function `void A::foo() [with T = int, int N = 0, int X = 1]': We would be left with something like : test.cc: In member function `void A::foo() [with T = int]': I assume that sounds about right, even if it might be surprising at first why the "with" clause does not show all the parameters. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14912