]> granicus.if.org Git - clang/commit
PR27513: When determining which declaration to put into an exported lookup
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 26 Apr 2016 23:40:43 +0000 (23:40 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 26 Apr 2016 23:40:43 +0000 (23:40 +0000)
commitca0241ca1e5404add33ab97c2c4369bf03f2075a
tree55f7d40a2abab275b31a4109c62e43c38d025a3b
parent2e58709f4488a9986f16bd6db8146fca235bda60
PR27513: When determining which declaration to put into an exported lookup
table for a module / PCH, never map from a normal declaration of a class to an
injected-class-name declaration (or vice versa). Those declarations live in
distinct lookup tables and should not be confused.

We really shouldn't be using a CXXRecordDecl to represent an
injected-class-name in the first place; I've filed PR27532 so we don't forget.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@267632 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
lib/Serialization/ASTWriter.cpp
test/Modules/Inputs/PR27513/a.h [new file with mode: 0644]
test/Modules/Inputs/PR27513/b.h [new file with mode: 0644]
test/Modules/Inputs/PR27513/b1.h [new file with mode: 0644]
test/Modules/Inputs/PR27513/b11.h [new file with mode: 0644]
test/Modules/Inputs/PR27513/b111.h [new file with mode: 0644]
test/Modules/Inputs/PR27513/b1111.h [new file with mode: 0644]
test/Modules/Inputs/PR27513/b1112.h [new file with mode: 0644]
test/Modules/Inputs/PR27513/b2.h [new file with mode: 0644]
test/Modules/Inputs/PR27513/c.h [new file with mode: 0644]
test/Modules/Inputs/PR27513/module.modulemap [new file with mode: 0644]
test/Modules/Inputs/PR27513/mystring.h [new file with mode: 0644]
test/Modules/pr27513.cpp [new file with mode: 0644]