From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4557 invoked by alias); 5 Jun 2005 16:48:25 -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 4542 invoked by uid 48); 5 Jun 2005 16:48:22 -0000 Date: Sun, 05 Jun 2005 16:48:00 -0000 Message-ID: <20050605164822.4540.qmail@sourceware.org> From: "mmitchel at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050517114202.21619.rguenth@gcc.gnu.org> References: <20050517114202.21619.rguenth@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/21619] [4.0 regression] __builtin_constant_p(&"Hello"[0])?1:-1 not compile-time constant X-Bugzilla-Reason: CC X-SW-Source: 2005-06/txt/msg00820.txt.bz2 List-Id: ------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-06-05 16:48 ------- 4.0.1 has a patch to tolerate array accesses in __builtin_constant_p arguments, but __builtin_constant_p never returns 1 for arguments of pointer type on the 4.0 branch, so the original test case still will not compile on 4.0. In 4.1, __builtin_constant_p is more clever, so the test case does work there. -- What |Removed |Added ---------------------------------------------------------------------------- Summary|[4.0/4.1 regression] |[4.0 regression] |__builtin_constant_p(&"Hello|__builtin_constant_p(&"Hello |"[0])?1:-1 not compile-time |"[0])?1:-1 not compile-time |constant |constant http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21619