⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 explicit71.c

📁 linux下编程用 编译软件
💻 C
字号:
// { 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -