forked from gcc-mirror/gcc
-
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.
* pt.c (reduce_template_parm_level): Check the type before returning cached TEMPLATE_PARM_INDEX. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155411 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
jason
committed
Dec 22, 2009
1 parent
5818492
commit 8a4ad7e
Showing
4 changed files
with
28 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// PR c++/42466 | ||
|
||
template<class IntT, IntT X> | ||
struct A | ||
{ | ||
A(); | ||
|
||
template<IntT X2> | ||
A(const A<IntT, X2>& other); | ||
}; | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
A<int, 42> a; | ||
A<int, 100> b = a; | ||
|
||
A<unsigned, 42u> c; | ||
A<unsigned, 100u> d = c; | ||
} |