array3.c

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 24 行

C
24
字号
// PR c++/6331// Bug: we were generating a badly cv-qualified ARRAY_TYPE in the// synthesized copy constructor for A, which then became the canonical// version, confusing later uses.struct A {  virtual ~A();  const float* f();  float fa[3];};struct B {  B(const A& ai) : a (ai) {}  A a;};void g (const float pos[3]);extern A& a;void h(){  g (a.f());}

⌨️ 快捷键说明

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