<div dir="ltr"><div>We've had a curious bug reported on IWYU, where CastExpr::getConversionFunction does not return a FunctionDecl.</div><div><br></div><div>After some research, it turns out we get an AccessSpecDecl instead, which seems like a strange conversion function.</div><div><br></div><div>I tried running with ASAN enabled for only IWYU, but didn't get any useful results, but eventually I managed to repro a non-IWYU contained example. That in turn led me to:<br></div><div><a href="https://bugs.llvm.org/show_bug.cgi?id=44972" target="_blank">https://bugs.llvm.org/show_bug.cgi?id=44972</a></div><div><br></div><div>I'm not sure where to go from there, though... It seems the parser somehow triggers a use-after-free in BumpPtrAllocator. Can I narrow it down somehow? I have an 800K preprocessed repro, but from cursory experiments ASAN triggers use-after-poison there on basically anything.</div><div><br></div><div>Thanks for any ideas for narrowing down the issue,</div><div>- Kim<br></div></div>