]> granicus.if.org Git - clang/commit
This patch makes "&Cls::purevfn" not an odr use. This isn't what the standard
authorNick Lewycky <nicholas@mxc.ca>
Sat, 2 Feb 2013 00:25:55 +0000 (00:25 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 2 Feb 2013 00:25:55 +0000 (00:25 +0000)
commitb7e5eec2f57bd82c6ddb762ca3dd7b7d8697e9d5
tree7888570249ff2e98a75a4a6ec5ca6d4f6171e256
parent0c4394c7f63008fbf4d335710b34f71afab362a3
This patch makes "&Cls::purevfn" not an odr use. This isn't what the standard
says, but that's a defect (to be filed). "Cls::purevfn()" is still an odr use.

Also fixes a bug that caused us to not mark the function referenced just
because we didn't want to mark it odr used.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174242 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaExpr.cpp
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaTemplateVariadic.cpp
test/SemaCXX/address-of.cpp
test/SemaCXX/undefined-internal.cpp