Rakete1111 added a comment. Thanks! That was an oversight on my part, sorry.
================ Comment at: lib/Sema/SemaExprCXX.cpp:5185 if (!isIndirect && !LHS.get()->Classify(Context).isLValue()) { // C++2a allows functions with ref-qualifier & if they are also 'const'. + if (Proto->isConst() && !Proto->isVolatile()) ---------------- I think you should update the comment to something like "also 'const', but not if they're 'volatile'." https://reviews.llvm.org/D38075 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits