We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07392e1 commit 18473caCopy full SHA for 18473ca
clang/lib/Sema/SemaExprCXX.cpp
@@ -2753,7 +2753,7 @@ static bool resolveAllocationOverloadInterior(
2753
if (Diagnose) {
2754
// If this is an allocation of the form 'new (p) X' for some object
2755
// pointer p (or an expression that will decay to such a pointer),
2756
- // diagnose potential error.
+ // diagnose the reason for the error.
2757
if (!R.isClassLookup() && Args.size() == 2 &&
2758
(Args[1]->getType()->isObjectPointerType() ||
2759
Args[1]->getType()->isArrayType())) {
0 commit comments