From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31411 invoked by alias); 8 Sep 2004 22:41:07 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 31404 invoked from network); 8 Sep 2004 22:41:07 -0000 Received: from unknown (HELO vortex.ices.utexas.edu) (128.83.68.102) by sourceware.org with SMTP; 8 Sep 2004 22:41:07 -0000 Received: from terra.ices.utexas.edu (IDENT:+2Wli0Ees3twI9dvGwdvDlHXzvIlquoA@terra.ices.utexas.edu [128.83.68.97]) by vortex.ices.utexas.edu (8.12.8/8.12.9) with ESMTP id i88Mf6r7024313; Wed, 8 Sep 2004 17:41:06 -0500 Date: Wed, 08 Sep 2004 22:41:00 -0000 From: Wolfgang Bangerth To: Simon MARTIN , Subject: Re: Type problem with template functions and inheritance? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-09/txt/msg00401.txt.bz2 > I played a little with templates and template functions, and I encountered a > problem with GCC while doing so. The code at the end of this message builds > with Microsoft's Visual C++ Toolkit 2003, but fails with GCC. Since the code > is quite "weird", I wonder whether there's a problem in GCC or Visual is too > laxist. > > What is strange is: > - the "" in the error message > - the fact that if I "help" GCC a little (before the first static_cast), > then things work fine. I just opened PR 17359 for this. It seems to me that gcc is wrong indeed. W. ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ices.utexas.edu www: http://www.ices.utexas.edu/~bangerth/