collapse-bug.c

来自「用于进行gcc测试」· C语言 代码 · 共 17 行

C
17
字号
// { dg-options "--std=c++0x" }template<typename T, typename U> struct same_type;template<typename T> struct same_type<T, T> {};template <typename T>struct S{  typedef T const (&type)();};void f(){  // initial implementation didn't ignore const qualifier on  // reference, resulting in a typedef of 'const int& (&)()'  same_type<S<int &>::type, int&(&)()>();}

⌨️ 快捷键说明

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