Sema: Diagnose global replacement functions declared as inline
authorDavid Majnemer <david.majnemer@gmail.com>
Sun, 20 Oct 2013 05:40:29 +0000 (05:40 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sun, 20 Oct 2013 05:40:29 +0000 (05:40 +0000)
commitad51f1bc70f5342ae32e702800eb817e4bef8c04
tree170611a74bc59127b2a644d4ba7d9f389a041fa6
parenta5906f06aacd147608a1e838b7dd6e7293b09425
Sema: Diagnose global replacement functions declared as inline

This fixes PR17591.

N.B. This actually goes beyond what the standard mandates by requiring
the restriction to hold for declarations instead of definitions.  This
is believed to be a defect in the standard and an LWG issue has been
submitted.

llvm-svn: 193044
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDecl.cpp
clang/test/SemaCXX/new-delete.cpp