]> granicus.if.org Git - clang/commit
[AST] Perform additional canonicalization for DependentSizedArrayType
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 24 Jul 2015 05:54:19 +0000 (05:54 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 24 Jul 2015 05:54:19 +0000 (05:54 +0000)
commit3e892d1a1d2a54c60f35713c6296cdf9915e1df4
treebcda78bc89e414e41920e897b81f0b7fe6ef98b2
parent7fe6f5798bebcca0edb0e147b6a29fdcefe70f9d
[AST] Perform additional canonicalization for DependentSizedArrayType

We treated DependentSizedArrayTypes with the same element type but
differing size expressions as equivalently canonical.  This would lead
to bizarre behavior during template instantiation.

This fixes PR24212.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243093 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
test/SemaCXX/alias-template.cpp