?? nontype6.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 + -