]> granicus.if.org Git - clang/commit
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)
commitd2b0cf38be1e6bd9b35353ae3da49eda5dc4e1e5
treefab17e3a309dc5ba0cc3faeeba4715a0adfa04a3
parentdaaabf72e77757d62bc9584927dee22968669514
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193044 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/SemaCXX/new-delete.cpp