📄 spec14.c
字号:
// { dg-do compile }// Origin: <weissr at informatik dot uni-tuebingen dot de>// PR c++/3671: Non-type enum parameters must not be convertedenum T1 {a};enum T2 {b};struct Y { template <T1 i> void foo() {} template <T2 i> void foo() {}};struct Z { template <T1 i> void foo() {}};template void Y::foo<b> ();template void Z::foo<b> (); // { dg-error "" }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -