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)
commit0e32c5283ae8307179da18ddeef112435bbcbf6b
tree0b3ba1688728b75a42328e3e7463f18c49a45e10
parent27fa77e102ae716869f0daa0c96c5f3c71772f7b
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.

llvm-svn: 264471
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaExpr.cpp
clang/test/SemaCXX/undefined-inline.cpp