]> granicus.if.org Git - clang/commit
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)
commit2e130255c26c6b01d9335b61f5016ac4dddcd1f0
treeada4f9cffebf3d680bcbf907686ab074926a12f1
parentab528a3f4a092dd80a1c443e9556dd7ae3b17d46
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>;
    }

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212233 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Decl.cpp