This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/21595] New: __builtin_constant_p(&"Hello"[0]) is true for C but not for C++
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 May 2005 21:33:05 -0000
- Subject: [Bug middle-end/21595] New: __builtin_constant_p(&"Hello"[0]) is true for C but not for C++
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
... because of different representations are passed to fold_builtin_constant_p.
--
Summary: __builtin_constant_p(&"Hello"[0]) is true for C but not
for C++
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21595