cltemp20.c
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 31 行
C
31 行
#include "fail.h"
//this was reduced down from stlport - it was crashing compiler
//simular test case to cltemp19.c but crashing in different place
template <class P>
class A {
};
template<>
class A<void> {
};
template <class Q, class R>
struct B{
};
template <class S, class T>
struct B<S, A<T> > {
typedef int K;
};
struct C{
typedef typename B<bool, A<bool> >::K L;
typedef typename B<int, A<bool> >::K M;
};
int main() {
C c;
_PASS;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?