]> granicus.if.org Git - clang/commit
Don't warn on "use" of undefined inline function that isn't actually an ODR
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 25 Mar 2016 22:29:27 +0000 (22:29 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 25 Mar 2016 22:29:27 +0000 (22:29 +0000)
commita770469c09407dcba821d1a575300ac69274516d
tree70d0e5f0179734628df129062bdb22331cd2c438
parentfff3553f38ef98f6fb6bad4adbbb78d526bfcc0b
Don't warn on "use" of undefined inline function that isn't actually an ODR
use. In order for this to fire, the function needed to be a templated function
marked 'constexpr' and declared but not defined. This weird pattern appears in
libstdc++'s alloc_traits.h.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264471 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaExpr.cpp
test/SemaCXX/undefined-inline.cpp