]> granicus.if.org Git - clang/commit
When resolving the address of an overloaded function or function template, mark the...
authorSebastian Redl <sebastian.redl@getdesigned.at>
Sat, 17 Oct 2009 21:12:09 +0000 (21:12 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Sat, 17 Oct 2009 21:12:09 +0000 (21:12 +0000)
commit07ab20203fb4254f6152c9a7176732fe199adccd
tree2f7b83482c89d6599e35290a6dcc029e9ddfb292
parent759986e85990281ea741820822809ac57fd28c40
When resolving the address of an overloaded function or function template, mark the result as referenced.

The most important effect of this is that function templates only referenced by address expressions now get instantiated. This, in turn, means that Hello World compiles with the Apache stdcxx library even when using endl.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84363 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
test/CodeGenCXX/address-of-fntemplate.cpp