This started with bug https://bugs.llvm.org/show_bug.cgi?id=41909 which was fixed by https://reviews.llvm.org/D62550 . In the last comment of the bug report, Pavel A. Lebedev gives a code snippet that now makes clang trigger an ICE. This code was broken by that very commit.
I am no expert, but I tried to follow this comment. We now build the dependent statements only if the promise type is not dependent anymore. If it still is, I guess dependent statements are built in a later pass when all templates are instantiated.
I have added the second code snippet from the bug and the godbolt snippet from modocache's answer on the review, this patch seems to fix them all.