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

--- Comment #41 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:69dc042f91c70458ffb6e7b147f093799cee2100

commit r10-5927-g69dc042f91c70458ffb6e7b147f093799cee2100
Author: Jason Merrill <ja...@redhat.com>
Date:   Fri Jan 10 15:38:34 2020 -0500

    PR c++/80265 - constexpr __builtin_mem*.

    The library has already worked around this issue, but I was curious about
    why it wasn't working.  The answer: because we were passing &var to fold,
    which doesn't know about the constexpr values hash table.  Fixed by passing
    &"str" instead.

        * constexpr.c (cxx_eval_builtin_function_call): Expose STRING_CST
        to str/mem builtins.

Reply via email to