https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82481
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |trippels at gcc dot gnu.org --- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- I get: clang-tidy: /home/markus/llvm/clang/include/clang/AST/Expr.h:137: void clang::Expr::setType(clang::QualType): Assertion `(t.isNull() || !t->isReferenceType()) && "Expressions can't have reference type"' failed. [1] 12173 abort clang-tidy main.cpp -extra-arg=-std=c++14 So it might well be a clang-tidy bug.