]> granicus.if.org Git - clang/commit
Sema: Properly track mangling number/name for linkage for using decls
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 11 Mar 2015 06:45:39 +0000 (06:45 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 11 Mar 2015 06:45:39 +0000 (06:45 +0000)
commit99823a75249bb2d809f90f86a439206c474f72ee
tree19a8b2fb03df7df2e8b751d3905db307ed6b18e1
parent741be16bd5a52e8e0c08ac2149600d2ec8cf4a3a
Sema: Properly track mangling number/name for linkage for using decls

Using declarations which are aliases to struct types have their name
used as the struct type's name for linkage purposes.  Otherwise, make
sure to give an anonymous struct defined inside a using declaration a
mangling number to disambiguate it from other anonymous structs in the
same context.

This fixes PR22809.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@231909 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Parse/ParseDeclCXX.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
test/CodeGenCXX/mangle.cpp