⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 900519_02.c

📁 this is a gcc file, you can download it and learn its usetility, for further detail please look at t
💻 C
字号:
// g++ 1.37.1 bug 900519_02// The C++ Reference Manual says (in section 8.4.3) "A reference to a plain// T can only be initialized with a plain T" however g++ allows the// initialization of plain references with qualified objects in many cases.// keywords: references, initialization, type qualifiersextern const int cint_obj = 9;volatile int vint_obj = 9;void take_int_ref (int& arg) { } // ERROR - referenced by errors belowint& global_int_ref0 = cint_obj;		// ERROR - int& global_int_ref1 = vint_obj;		// ERROR - extern const int& cint_ref;extern volatile int& vint_ref;void test_0 (){  int& local_int_ref0 = cint_obj;		// ERROR -   int& local_int_ref1 = vint_obj;		// ERROR -   take_int_ref (cint_obj);			// ERROR - caught  take_int_ref (vint_obj);			// ERROR -   take_int_ref (cint_ref);			// ERROR -   take_int_ref (vint_ref);			// ERROR - }int main () { return 0; }

⌨️ 快捷键说明

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