This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/21595] [4.0/4.1 Regression] __builtin_constant_p(&"Hello"[0]) is true for C but not for C++


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-16 00:04 -------
Here is a compile time testcase:
int f[__builtin_constant_p(&"Hello"[0])?1:-1];


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21595


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]