Created attachment 238376 [details] allocator.sh Assertion failed: (isDeclRep((TST) TypeSpecType) || TypeSpecType == TST_typename), function getTypeSpecTypeNameLoc, file /usr/src/contrib/llvm-project/clang/include/clang/Sema/DeclSpec.h, line 519. Same fallout on every -CURRENT box: https://portsfallout.com/fallout?port=devel%2Flibdispatch%24 Source files are too large to attach, but are available unmodified in https://github.com/apple/swift-corelibs-libdispatch/tree/swift-5.5-RELEASE/src corresponding to the reproducer scripts
Created attachment 238377 [details] apply.sh
Created attachment 238378 [details] benchmark.sh
As a data point, builds successfully with devel/llvm15, so probably a good sign for when LLVM 15 makes it into base.
(In reply to Charlie Li from comment #3) More likely because the port has assertions disabled, so they are never hit. :) Can you upload the preprocessed files somewhere? It's not always trivial to reproduce the exact build environment, which is why clang writes these.
https://people.freebsd.org/~vishwin/libdispatch/ The assertion (~12 years unchanged according to git-blame(1)) does not appear to hit in the previous -STABLEs (and cut -RELEASEs) either, as they have/use older LLVM.
(In reply to Charlie Li from comment #5) Same there, stable branches have assertions disabled. :)
(In reply to Dimitry Andric from comment #4) > More likely because the port has assertions disabled, so they are never hit. :) I have bug 265425 applied and can't reproduce. My src.conf(5) doesn't contain WITHOUT_LLVM_ASSERTIONS but this is "low trust" claim as I don't know how to check whether clang binary has assertions enabled. Unfortunately, bug 265425 comment 7 logs *predate* the port revival in ports b9662312dff8.