[Bug c++/80783] missing constexpr diagnostic for functions that cannot be constexpr

2017-05-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80783 Martin Sebor changed: What|Removed |Added Severity|enhancement |normal --- Comment #4 from Martin Sebor

[Bug c++/80783] missing constexpr diagnostic for functions that cannot be constexpr

2017-05-18 Thread victor.nawothnig at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80783 --- Comment #3 from Victor Nawothnig --- Created attachment 41384 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41384&action=edit Examples All testcases and their results attached for better readability

[Bug c++/80783] missing constexpr diagnostic for functions that cannot be constexpr

2017-05-18 Thread victor.nawothnig at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80783 --- Comment #2 from Victor Nawothnig --- Except all the following examples violate the core constant expression constraint ([expr.const] 2.3), but GCC diagnoses only some: ``` $ echo '#include \n constexpr int f() { atoi(""); return 1; }' | g++

[Bug c++/80783] missing constexpr diagnostic for functions that cannot be constexpr

2017-05-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80783 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRMED