freelist_tests.c:133:51: error: constexpr variable 'num_elem_allocated' must be initialized by a constant expression 133 | constexpr int num_elem_allocated = min(20, list->array_len); | ~~~~~~~~^~~~~~~~~~~~~~~~ freelist_tests.c:130:27: note: expanded from macro 'min' 130 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ~~~~~~~~^~~~~~~~~~~~~~~ PLEASE submit a bug report to https://github.com/Homebrew/homebrew-core/issues and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /opt/homebrew/Cellar/llvm/19.1.1/bin/clang-19 -cc1 -triple arm64-apple-macosx15.0.0 -Wundef-prefix=TARGET_OS_ -Werror=undef-prefix -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -dumpdir a- -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name freelist_tests.c -mrelocation-model pic -pic-level 2 -mframe-pointer=non-leaf -ffp-contract=on -fno-rounding-math -funwind-tables=1 -fcompatibility-qualified-id-block-type-checking -fvisibility-inlines-hidden-static-local-var -fbuiltin-headers-in-system-modules -fdefine-target-os-macros -target-cpu apple-m1 -target-feature +zcm -target-feature +zcz -target-feature +v8.4a -target-feature +aes -target-feature +altnzcv -target-feature +ccdp -target-feature +complxnum -target-feature +crc -target-feature +dotprod -target-feature +fp-armv8 -target-feature +fp16fml -target-feature +fptoint -target-feature +fullfp16 -target-feature +jsconv -target-feature +lse -target-feature +neon -target-feature +pauth -target-feature +perfmon -target-feature +predres -target-feature +ras -target-feature +rcpc -target-feature +rdm -target-feature +sb -target-feature +sha2 -target-feature +sha3 -target-feature +specrestrict -target-feature +ssbs -target-abi darwinpcs -debug-info-kind=standalone -dwarf-version=5 -debugger-tuning=lldb -fdebug-compilation-dir=/Users/orian/plearning/C_learning/HTTP/tests -target-linker-version 1115.7.3 -fcoverage-compilation-dir=/Users/orian/plearning/C_learning/HTTP/tests -resource-dir /opt/homebrew/Cellar/llvm/19.1.1/lib/clang/19 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -internal-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/local/include -internal-isystem /opt/homebrew/Cellar/llvm/19.1.1/lib/clang/19/include -internal-externc-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include -O0 -std=c23 -ferror-limit 19 -stack-protector 1 -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fmax-type-align=16 -disable-llvm-passes -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /var/folders/zn/w9yj2r6n66v4xlnykkc60n440000gn/T/freelist_tests-ce0d96.o -x c freelist_tests.c 1. freelist_tests.c:135:57: current parser token ';' 2. freelist_tests.c:131:34: parsing function body 'freelist_thread' 3. freelist_tests.c:131:34: in compound statement ('{}') #0 0x000000011a357720 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x4a0f720) #1 0x000000011a357b0c SignalHandler(int) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x4a0fb0c) #2 0x00000001907d4184 (/usr/lib/system/libsystem_platform.dylib+0x180484184) #3 0x0000000107c98e74 clang::Expr::EvaluateKnownConstIntCheckOverflow(clang::ASTContext const&, llvm::SmallVectorImpl>*) const (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x5fce74) #4 0x0000000108800e6c clang::Sema::VerifyIntegerConstantExpression(clang::Expr*, llvm::APSInt*, clang::Sema::VerifyICEDiagnoser&, clang::Sema::AllowFoldKind) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x1164e6c) #5 0x0000000108e0fba0 clang::Sema::BuildArrayType(clang::QualType, clang::ArraySizeModifier, clang::Expr*, unsigned int, clang::SourceRange, clang::DeclarationName) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x1773ba0) #6 0x0000000108e1f088 GetFullTypeForDeclarator((anonymous namespace)::TypeProcessingState&, clang::QualType, clang::TypeSourceInfo*) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x1783088) #7 0x0000000108e16c80 clang::Sema::GetTypeForDeclarator(clang::Declarator&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x177ac80) #8 0x00000001085f7134 clang::Sema::HandleDeclarator(clang::Scope*, clang::Declarator&, llvm::MutableArrayRef) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0xf5b134) #9 0x00000001085f69a8 clang::Sema::ActOnDeclarator(clang::Scope*, clang::Declarator&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0xf5a9a8) #10 0x0000000107903d5c clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ForRangeInit*) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x267d5c) #11 0x0000000107900560 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo&, clang::SourceLocation*, clang::Parser::ForRangeInit*) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x264560) #12 0x00000001078ff98c clang::Parser::ParseSimpleDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::ParsedAttributes&, bool, clang::Parser::ForRangeInit*, clang::SourceLocation*) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x26398c) #13 0x00000001078ff34c clang::Parser::ParseDeclaration(clang::DeclaratorContext, clang::SourceLocation&, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::SourceLocation*) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x26334c) #14 0x00000001079d552c clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x33952c) #15 0x00000001079d3798 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector&, clang::Parser::ParsedStmtContext, clang::SourceLocation*) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x337798) #16 0x00000001079e420c clang::Parser::ParseCompoundStatementBody(bool) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x34820c) #17 0x00000001079e6008 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x34a008) #18 0x0000000107a0a1d0 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x36e1d0) #19 0x0000000107901104 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo&, clang::SourceLocation*, clang::Parser::ForRangeInit*) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x265104) #20 0x0000000107a08908 clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x36c908) #21 0x0000000107a080a4 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x36c0a4) #22 0x0000000107a066f0 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x36a6f0) #23 0x0000000107a03aa0 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&, clang::Sema::ModuleImportState&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x367aa0) #24 0x00000001078d3be8 clang::ParseAST(clang::Sema&, bool, bool) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x237be8) #25 0x00000001099eecfc clang::FrontendAction::Execute() (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x2352cfc) #26 0x00000001099657b4 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x22c97b4) #27 0x0000000109a48470 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x23ac470) #28 0x0000000102692b3c cc1_main(llvm::ArrayRef, char const*, void*) (/opt/homebrew/Cellar/llvm/19.1.1/bin/clang-19+0x100006b3c) #29 0x000000010269078c ExecuteCC1Tool(llvm::SmallVectorImpl&, llvm::ToolContext const&) (/opt/homebrew/Cellar/llvm/19.1.1/bin/clang-19+0x10000478c) #30 0x000000010268ec14 clang_main(int, char**, llvm::ToolContext const&) (/opt/homebrew/Cellar/llvm/19.1.1/bin/clang-19+0x100002c14) #31 0x000000010269d04c main (/opt/homebrew/Cellar/llvm/19.1.1/bin/clang-19+0x10001104c) #32 0x000000019041c274 clang: error: unable to execute command: Segmentation fault: 11 clang: error: clang frontend command failed due to signal (use -v to see invocation) Homebrew clang version 19.1.1 Target: arm64-apple-darwin24.0.0 Thread model: posix InstalledDir: /opt/homebrew/Cellar/llvm/19.1.1/bin clang: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang: note: diagnostic msg: /var/folders/zn/w9yj2r6n66v4xlnykkc60n440000gn/T/freelist_tests-724fdb.c clang: note: diagnostic msg: /var/folders/zn/w9yj2r6n66v4xlnykkc60n440000gn/T/freelist_tests-724fdb.sh clang: note: diagnostic msg: Crash backtrace is located in clang: note: diagnostic msg: /Users/orian/Library/Logs/DiagnosticReports/clang-19__.crash clang: note: diagnostic msg: (choose the .crash file that corresponds to your crash) clang: note: diagnostic msg: ********************