This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38377] __builtin_constant_p(t) ? t : 1 is not considered a constant integer expression
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2008 00:31:46 -0000
- Subject: [Bug c++/38377] __builtin_constant_p(t) ? t : 1 is not considered a constant integer expression
- References: <bug-38377-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from joseph at codesourcery dot com 2008-12-15 00:31 -------
Subject: Re: __builtin_constant_p(t) ? t : 1 is not considered
a constant integer expression
I also added more __builtin_constant_p tests (gcc.dg/bconstp-[34].c) to
c-4_5-branch, following this discussion, to verify more of the model for
how __builtin_constant_p works in constant expressions. In general the
constant expressions tests there (both those added there, and the
previously existing constant expressions / overflow diagnostics tests,
most of which have had XFAILs removed on the branch) reflect my
interpretation for the GNU C language of both the standard constant
expressions rules where unclear and of how the rules should be applied to
new language features in GNU C that aren't in ISO C.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38377