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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |libstdc++

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I take that back, clang provideds a better error message on why `&a ==
"string"` is not constexpr:

```
/opt/compiler-explorer/gcc-snapshot/lib/gcc/x86_64-linux-gnu/14.0.0/../../../../include/c++/14.0.0/bits/char_traits.h:230:13:
note: comparison of addresses of literals has unspecified value
  230 |           if (__s1 == __s2) // unlikely, but saves a lot of work
      |                    ^
```

Reply via email to