From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3835 invoked by alias); 15 Feb 2006 19:55:59 -0000 Received: (qmail 3816 invoked by uid 48); 15 Feb 2006 19:55:55 -0000 Date: Wed, 15 Feb 2006 19:55:00 -0000 Message-ID: <20060215195555.3815.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/26205] pointer to member template parameter can't be null In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jeffp at doomsday dot org" 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 X-SW-Source: 2006-02/txt/msg01738.txt.bz2 List-Id: ------- Comment #3 from jeffp at doomsday dot org 2006-02-15 19:55 ------- The casting work-around doesn't compile under GCC. It requires that the template parameter be a constant-expression (which is true), which results in the following error: error: a casts to a type other than an integral or enumeration type cannot appear in a constant-expression I have yet to be able to figure out a work-around. MSVC allows the cast, but works with or without it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26205