[Bug c++/88604] Initializing constexpr array consumes all memory

2018-12-26 Thread gcc-bugs at oxyware dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88604 --- Comment #1 from Hubert Matthews --- Created attachment 45288 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45288=edit Source code

[Bug c++/88604] New: Initializing constexpr array consumes all memory

2018-12-26 Thread gcc-bugs at oxyware dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at oxyware dot com Target Milestone: --- Compiling the attached code with g++ 8.2.1 and no optimisation or compiler flags causes cc1plus to consume all of physical memory until it hits an OOM Linux error. Clang

[Bug c++/86000] ICE with requires statement in a non constexpr if

2018-05-31 Thread gcc-bugs at oxyware dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86000 --- Comment #2 from Hubert Matthews --- template int f() { bool check = requires { 3 > 4; }; if (check) return 1; else return 2; } compiles cleanly and gives the expected result. This is essentially the same code but with the

[Bug c++/86000] ICE with requires statement in a non constexpr if

2018-05-31 Thread gcc-bugs at oxyware dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86000 --- Comment #1 from Hubert Matthews --- template int f() { bool check = requires { 3 > 4; }; if (check) return 1; else return 2; } compiles cleanly and gives the expected result. This is essentially the same code but with the

[Bug c++/86002] New: ICE with requires in constexpr if condition

2018-05-30 Thread gcc-bugs at oxyware dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at oxyware dot com Target Milestone: --- Created attachment 44214 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44214=edit Pre-processed source and command-line options // ICE when using requires to det

[Bug c++/86000] New: ICE with requires statement in a non constexpr if

2018-05-30 Thread gcc-bugs at oxyware dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at oxyware dot com Target Milestone: --- Created attachment 44213 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44213=edit Preprocessed source with command-line options // This code when compi