]> granicus.if.org Git - clang/commit
[modules] Fix adding a templated friend functions to a namespace from another module.
authorVassil Vassilev <v.g.vassilev@gmail.com>
Wed, 16 Mar 2016 11:17:04 +0000 (11:17 +0000)
committerVassil Vassilev <v.g.vassilev@gmail.com>
Wed, 16 Mar 2016 11:17:04 +0000 (11:17 +0000)
commit64e5a9bb786dabb6728d100712e8cf4d0a0bc5e1
treec0faf348d052d3ae81548d9ece55ec0da6f528ac
parent9c1825952cd57ff93d1331c990ef81da84db2285
[modules] Fix adding a templated friend functions to a namespace from another module.

When clang adds argument dependent lookup candidates, it can perform template
instantiation. For example, it can instantiate a templated friend function and
register it in the enclosing namespace's lookup table.

Fixes https://llvm.org/bugs/show_bug.cgi?id=24954

Reviewed by Richard Smith.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263634 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ASTWriter.cpp
test/Modules/Inputs/PR24954/A.h [new file with mode: 0644]
test/Modules/Inputs/PR24954/B.h [new file with mode: 0644]
test/Modules/Inputs/PR24954/module.modulemap [new file with mode: 0644]
test/Modules/pr24954.cpp [new file with mode: 0644]