forked from llvm-mirror/clang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ODRHash] Hash Template and TemplateExpansion in TemplateArgument.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305361 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
5d7ff3b
commit 3e9def3
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1051,6 +1051,24 @@ S3 s3; | |
// [email protected]:* {{but in 'FirstModule' found type alias 'T' with different underlying type 'U3<2>'}} | ||
#endif | ||
|
||
#if defined(FIRST) | ||
template<class> struct T4a {}; | ||
template <template <class> class T> struct U4 {}; | ||
struct S4 { | ||
U4<T4a> x; | ||
}; | ||
#elif defined(SECOND) | ||
template<class> struct T4b {}; | ||
template <template <class> class T> struct U4 {}; | ||
struct S4 { | ||
U4<T4b> x; | ||
}; | ||
#else | ||
S4 s4; | ||
// [email protected]:* {{'TemplateArgument::S4::x' from module 'FirstModule' is not present in definition of 'TemplateArgument::S4' in module 'SecondModule'}} | ||
// [email protected]:* {{declaration of 'x' does not match}} | ||
#endif | ||
|
||
} | ||
|
||
// Interesting cases that should not cause errors. struct S should not error | ||
|