pmf1.c

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

C
18
字号
// PR c++/14089// { dg-do compile }//// C++ front end generated assignment between types that were not// compatible in any sense visible to the optimizers.struct pair {    typedef void (pair::*fp)();    int first;    pair::fp second;    pair(const int& a, const pair::fp& b) : first(a), second(b) {}    void f(const int& a, const pair::fp& b) { first = a; second = b; }};void op() {    pair(5, pair::fp());}

⌨️ 快捷键说明

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