crash18.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 19 行
C
19 行
// { dg-do compile }// GROUPS passed old-aborttypedef int element;class Pix {public: Pix(); Pix(const Pix&); // Friend functions so that v == x works as does x == v works friend int operator==(void *v, const Pix& x) // { dg-error "previously" } { return v == index; } // { dg-error "from this location" } // ??? should be operator!= friend int operator==(void *v, const Pix& x) // { dg-error "redefinition" } { return v != index; }private:// friend class List<T>; element *index; // { dg-error "invalid use of non-static data member" }};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?