dr217.c

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 15 行

C
15
字号
// { dg-do compile }// Origin: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>// DR217: Default arguments for non-template member functions of class //  templates template <class T>struct S{  void foo (int);};template <class T>void S<T>::foo (int = 0)  // { dg-error "" "default arguments for parameters of member functions of class templates can be specified in the initial declaration only" { xfail *-*-* } }{ }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?