The crash is triggered on accessing a null InitExpr.
For group declaration, e.g. auto c = a, &d = {a};, what's happening:
- each VarDecl is built separately during the parsing stage.
- perform the semantic analysis (Sema::BuildDeclaratorGroup) to check
whether the type of the two VarDecl is the same, if not mark it as invalid.
in step 1, VarDecl c and d are built, both of them are valid (after D77395),
but d is without the InitExpr attached (under -fno-recovery-ast), crash
happens in step 2 when accessing the source range of d's InitExpr.