📄 scoping15.c
字号:
// { dg-do assemble }// { dg-options "-ffriend-injection" }// Bug: g++ ignores the :: qualification and dies trying to treat an integer// variable as a list of functions.class DComplex {public: friend double imag(const DComplex& a);};class FComplex {public: friend float imag(const FComplex& a);};voidscnrm2(FComplex cx[]){ int imag; ::imag( cx[0] );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -