From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29115 invoked by alias); 5 Dec 2003 02:44:17 -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 29107 invoked by uid 48); 5 Dec 2003 02:44:17 -0000 Date: Fri, 05 Dec 2003 02:44:00 -0000 Message-ID: <20031205024417.29106.qmail@sources.redhat.com> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030317033600.10118.philippeb@videotron.ca> References: <20030317033600.10118.philippeb@videotron.ca> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/10118] Bad diagnostic with cast in template argument expression X-Bugzilla-Reason: CC X-SW-Source: 2003-12/txt/msg00584.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-05 02:44 ------- this is semi-fixed on the mainline (get rid of the "()" and it would be considered fixed, unless someone says otherwise. ) pr1011.cc:7: error: `A::foo()' cannot appear in a constant-expression pr1011.cc:7: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression pr1011.cc:7: error: template argument 2 is invalid pr1011.cc:7: error: expected constructor, destructor, or type conversion -- What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10118