From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21172 invoked by alias); 24 Aug 2005 19:39:05 -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 20757 invoked by uid 48); 24 Aug 2005 19:38:25 -0000 Date: Wed, 24 Aug 2005 19:40:00 -0000 Message-ID: <20050824193825.20756.qmail@sourceware.org> From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050118104920.19502.reichelt@gcc.gnu.org> References: <20050118104920.19502.reichelt@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/19502] duplicate diagnostic for invalid template constant parameter X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg02840.txt.bz2 List-Id: ------- Additional Comments From reichelt at gcc dot gnu dot org 2005-08-24 19:38 ------- This is probably due to the fact that lookup_template_class is called twice as the comment above the function states: ??? Note that this function is currently called *twice* for each template-id: the first time from the parser, while creating the incomplete type (finish_template_type), and the second type during the real instantiation (instantiate_template_class). This is surely something that we want to avoid. It also causes some problems with argument coercion (see convert_nontype_argument for more information on this). */ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19502