https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67026
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2015-08-29 00:00:00 |2016-4-26
CC| |msebor at gcc dot gnu.org
Known to fail| |5.3.0, 6.0
--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
All test cases still fail with the current trunk. I've updated the Known to
fail field to reflect that.
$ cat z.cpp && /home/msebor/build/gcc-trunk-git/gcc/xgcc
-B/home/msebor/build/gcc-trunk-git/gcc -S -Wall -Wextra -Wpedantic z.cpp
void g () { }
constexpr int f0 () { return 0; g (); }
constexpr int f1 () { return 0; throw 0; }
z.cpp: In function ‘constexpr int f0()’:
z.cpp:2:35: error: call to non-constexpr function ‘void g()’
constexpr int f0 () { return 0; g (); }
~~^~
z.cpp: In function ‘constexpr int f1()’:
z.cpp:3:42: error: expression ‘<throw-expression>’ is not a constant-expression
constexpr int f1 () { return 0; throw 0; }
^