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&action=edit
Source code
: 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
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 check
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 check
++
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&action=edit
Pre-processed source and command-line options
// ICE when using requ
: 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&action=edit
Preprocessed source with command-line options
// This code when c