spec12.c

来自「linux下编程用 编译软件」· C语言 代码 · 共 19 行

C
19
字号
// { dg-do compile }// Contributed by: Wolfgang Bangerth <bangerth at dealii dot org>// PR c++/14409: Accepts invalid function signature for explicit instantiationstruct X {     template <typename U>     void foo (U) {}    template <typename U>     void foo_const (U) const {}};template void X::foo (int); template void X::foo_const (int) const; template void X::foo (int) const;   // { dg-error "" }template void X::foo_const (int);   // { dg-error "" }

⌨️ 快捷键说明

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