https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65398

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |jason at gcc dot gnu.org
         Resolution|FIXED                       |---

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Another testcase, derived from one attached to bug 65509:

char s[] = "s";

#define SA(X) static_assert((X),#X);
SA((&s[0] + 0) != (&s[0] + 1));

here we aren't indirecting the addresses, so I think cxx_fold_indirect_ref
isn't the right place for the fix.

Reply via email to