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: "sabre at nondot dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Dec 2008 21:31:58 -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 #3 from sabre at nondot dot org 2008-12-06 21:31 -------
Ok, so this is a special case when __builtin_constant_p is immediately the
operand of "?:"? Do you allow things like __builtin_constant_p(...)+0 as the
operand?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38377