[Bug c++/70248] constexpr initialization with unspecified equality expression accepted
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu May 12 22:53:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70248
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|6.0 |6.1.0
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Below is another example, one that even elicits a warning where GCC points out
the unspecified behavior:
$ cat xx.cpp && gcc -S -Wall -Wextra -Wpedantic -o/dev/null xx.cpp
constexpr int b = "" == "";
xx.cpp:1:25: warning: comparison with string literal results in unspecified
behavior [-Waddress]
constexpr int b = "" == "";
^~
More information about the Gcc-bugs
mailing list