spec20.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 17 行
C
17 行
// { dg-do assemble }// According to the non-normative example in// [temp.class.spec.mfunc]/2, these should be valid, but the grammar// in the Standard does not allow partial nor full specializations as// member-declarations, so we'd better not support them.template <class T> struct S { template <class U> void f(U); template <> void f<int>(int); // { dg-error "" } invalid specialization template <class V> struct I {}; template <class V> struct I<V*> {}; template <> struct I<int>; // { dg-error "" } invalid specialization};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?