explicit71.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 16 行
C
16 行
// { dg-do assemble }// by Alexandre Oliva <oliva@dcc.unicamp.br>// Based on a testcase by Reid M. Pinchback <reidmp@MIT.EDU>// According to the C++ Standard [temp.expl.spec]/17-18, explicit// specializations are only valid if all enclosing template classes// of the specialized template are fully specialized tootemplate <class X> class bug { template <class Y> class a {}; };template <class X> template <> // { dg-error "" } invalid specializationclass bug<X>::a<char> {}; // { dg-error "" }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?