repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libffi: Fix 32-bit SPARC structure passing [PR115681]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
crash-12.C
blob
6612ff216ba7436edec9d5edd765e3e3cbdc5e84
1
// Origin: PR c++/43953
2
3
template<typename T,
4
typename U,
5
typename T::type V> class bad;
6
7
// partial specialization
8
// for T = U
9
template<typename T, typename T::type V>
10
class bad<T, T, V>
11
{
12
public:
13
static void foo() {}
14
};
15
16
struct dummy
17
{
18
typedef int type;
19
};
20
21
int main()
22
{
23
bad<dummy, dummy, 0>::foo();
24
}
25