📄 spec12.c
字号:
// { dg-do compile }// Contributed by: Wolfgang Bangerth <bangerth at dealii dot org>// PR c++/14409: Accepts invalid function signature for explicit instantiationstruct X { template <typename U> void foo (U) {} template <typename U> void foo_const (U) const {}};template void X::foo (int); template void X::foo_const (int) const; template void X::foo (int) const; // { dg-error "" }template void X::foo_const (int); // { dg-error "" }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -