-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Open
Labels
c++23clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partyconstexprAnything related to constant evaluationAnything related to constant evaluationgenerated by fuzzerhangCompiler hang (infinite loop)Compiler hang (infinite loop)regression:20Regression in 20 releaseRegression in 20 release
Description
Clang trunk hangs when compiling following program under C++23 mode. The same code compiles successfully and quickly with --std=c++20
.
Program
#include <thread>
int main() {
std::thread memory_thread([]() {
const int alloc_size = 1024 * 1024;
while (true) {
char *buffer = new char[alloc_size];
if (buffer == nullptr)
break;
delete[] buffer;
}
});
return 0;
}
Here is the repro: https://godbolt.org/z/4v1c5Wreq
Metadata
Metadata
Assignees
Labels
c++23clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partyconstexprAnything related to constant evaluationAnything related to constant evaluationgenerated by fuzzerhangCompiler hang (infinite loop)Compiler hang (infinite loop)regression:20Regression in 20 releaseRegression in 20 release
Type
Projects
Status
No status