summaryrefslogtreecommitdiff
path: root/test/Modules/Inputs/ModuleMapLocations/Module_ModuleMap_F.framework
diff options
context:
space:
mode:
authorStephan Tolksdorf <st@quanttec.com>2014-03-15 10:23:27 +0000
committerStephan Tolksdorf <st@quanttec.com>2014-03-15 10:23:27 +0000
commit3b4e983aa6800b74cabbd45cdb516a2853ed528f (patch)
treecbf3af4590ca2bdaf8fa0b96fcd9780aa0eb3db2 /test/Modules/Inputs/ModuleMapLocations/Module_ModuleMap_F.framework
parenta849604d0397bfb9b3ec8f3aaba44f810da176ef (diff)
downloadclang-3b4e983aa6800b74cabbd45cdb516a2853ed528f.tar.gz
clang-3b4e983aa6800b74cabbd45cdb516a2853ed528f.tar.bz2
clang-3b4e983aa6800b74cabbd45cdb516a2853ed528f.tar.xz
Fix PR18806: Canonicalize the replacement type when deserializing a SubstTemplateTypeParmType
What's going on in the test case (without the patch applied) is this: When the header is parsed, decltype(B()) is canonicalized to decltype(Y()), because that was the first parsed equivalent decltype expression. Hence, the TemplateSpecializationType for Id<decltype(B())> ends up with SubstTemplateTypeParmType(T, decltype(Y())) as the AliasedType member. When the PCH file is included and the AST reader reads Id<decltype(B())>, it sees decltype(B()) before decltype(Y()). So, this time decltype(B()) ends up being the canonical type for both decltypes, which leads to an assert violation when the reader calls getSubstTemplateTypeParmType with the non-canonical decltype(Y()) as the replacement type. Reviewers: rsmith Reviewed By: rsmith CC: cfe-commits, aemerson Differential Revision: http://llvm-reviews.chandlerc.com/D3073 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Modules/Inputs/ModuleMapLocations/Module_ModuleMap_F.framework')
0 files changed, 0 insertions, 0 deletions