r193062 - Sema: Explain our deviation from the standard by referencing the, now open, LWG issue.

David Majnemer david.majnemer at gmail.com
Sun Oct 20 17:25:32 PDT 2013


Author: majnemer
Date: Sun Oct 20 19:25:32 2013
New Revision: 193062

URL: http://llvm.org/viewvc/llvm-project?rev=193062&view=rev
Log:
Sema: Explain our deviation from the standard by referencing the, now open, LWG issue.

Modified:
    cfe/trunk/lib/Sema/SemaDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=193062&r1=193061&r2=193062&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Sun Oct 20 19:25:32 2013
@@ -6807,6 +6807,8 @@ Sema::ActOnFunctionDeclarator(Scope *S,
 
     // C++11 [replacement.functions]p3:
     //  The program's definitions shall not be specified as inline.
+    //
+    // N.B. We diagnose declarations instead of definitions per LWG issue 2340.
     if (isInline && NewFD->isReplaceableGlobalAllocationFunction())
       Diag(D.getDeclSpec().getInlineSpecLoc(),
            diag::err_operator_new_delete_declared_inline)





More information about the cfe-commits mailing list