tcanens added inline comments.
================ 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()) ---------------- Rakete1111 wrote: > I think you should update the comment to something like "also 'const', but > not if they're 'volatile'." "if their cv-qualifier-seq is (exactly) 'const'", maybe? https://reviews.llvm.org/D38075 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits