[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=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; }' |

[Bug c++/80783] New: Inconsistent constexpr diagnostic for some cstdlib functions

2017-05-16 Thread victor.nawothnig at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: victor.nawothnig at gmail dot com Target Milestone: --- A set of functions from cstdlib suffers from incorrect constexpr diagnostic "call to non-constexpr function" #include