From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29147 invoked by alias); 18 Jul 2003 22:52:32 -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 29133 invoked by alias); 18 Jul 2003 22:52:31 -0000 Date: Fri, 18 Jul 2003 22:52:00 -0000 Message-ID: <20030718225231.29132.qmail@sources.redhat.com> From: "gdr at integrable-solutions dot net" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030718222516.11582.bangerth@dealii.org> References: <20030718222516.11582.bangerth@dealii.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/11582] Odd error message with dynamically sized template arg printing X-Bugzilla-Reason: CC X-SW-Source: 2003-07/txt/msg02210.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11582 ------- Additional Comments From gdr at integrable-solutions dot net 2003-07-18 22:52 ------- Subject: Re: New: Odd error message with dynamically sized template arg printing "bangerth at dealii dot org" writes: | ------------------------------------------------- | we get the following error: | tmp/gg> ../build-gcc/gcc-install/bin/c++ -c x.cc | x.cc: In function `void g()': | x.cc:6: error: no matching function for call to `f(int[size() [with T = int]()])' | | Note how we try to write the size of the array as an expression, which involves the | call to a templated function, and where it tries to place the template arg when | printing it. It is a little confusing to see the [with T=int] here, since T is nowhere referenced | before or after, and the placing is odd. I agree with you, that looks ugly. Fortunately, with the new pretty-printer being written, we should be able to do better. But before that, I need to get rid of some odd diagnostic functions, which is what I'm currently doing. [...] | x.cc:6: error: no matching function for call to `f(int[size()()])' | | I think that looks just cute ;-) Again agreed. We've been pulling out too important info, and trying hard to pull in too irrelevant info. -- Gaby