Fix linkage bug that miscompiled variable templates instantiated from similarly named...
authorLarisse Voufo <lvoufo@google.com>
Wed, 2 Jul 2014 23:08:34 +0000 (23:08 +0000)
committerLarisse Voufo <lvoufo@google.com>
Wed, 2 Jul 2014 23:08:34 +0000 (23:08 +0000)
commit5899e19defe57fe5bd504bc20d254ba1a423b9a7
tree0b82a794eadf3de81eea3085e02b64bfc28a112b
parentc67aa5403ca4b7a82bb671de7c6a86db2ff4140d
Fix linkage bug that miscompiled variable templates instantiated from similarly named local types. In essence, this bug ensures that the x<Foo> specialization in function foo() defined as follows differs between two distinct translation units.
    static int &foo() {
       struct Foo { };
       return x<Foo>;
    }

llvm-svn: 212233
clang/lib/AST/Decl.cpp