local1.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 26 行

C
26
字号
// PR c++/4286: We were crashing when trying to set up the class bindings in// g(), because xref wanted the mangled name, which breaks inside a template.// Of course, the offending code is actually ill-formed anyway, so check// for the error.  Also check that it's formatted properly.struct A{  template<class T> void f();};template<class T> void A::f(){  struct B  {    void g() {}    static int x;	// { dg-error "static.*`int A::f\\(\\)::B::x'" "" }  };}int main (){  A a;  a.f<int> ();}

⌨️ 快捷键说明

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