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

📄 nontype6.c

📁 linux下编程用 编译软件
💻 C
字号:
// { dg-do compile }// Origin: <v dot haisman at sh dot cvut dot cz>// PR c++/13957: Improved error message for type in template (when non-type//  is expected).template <class T>struct A{  typedef int type;};template <class T>void func(void){  (void)A<T>::type();	 // { dg-error "if a type is meant" }// { dg-error "parsed as a non-type" "non-type" { target *-*-* } 15 }}template void func<float>(void);    // { dg-error "instantiated from here" }

⌨️ 快捷键说明

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