[Bug c/89408] No constant folding when dereferencing string literals

2022-02-24 Thread srk31 at srcf dot ucam.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89408 --- Comment #7 from Stephen Kell --- Thanks for the backstory. I understand that 'accept as much as possible' isn't the goal, nor would it be wise. The pedwarn message you quoted, which explicitly makes reference to integer constant expressions,

[Bug c/89408] No constant folding when dereferencing string literals

2022-02-23 Thread srk31 at srcf dot ucam.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89408 Stephen Kell changed: What|Removed |Added CC||srk31 at srcf dot ucam.org --- Comment #5