pr33996.c
来自「用于进行gcc测试」· C语言 代码 · 共 53 行
C
53 行
// { dg-options "-std=c++0x" }#define BUGstruct type{ type() { } type(const type&) { }private: type(type&&);};template<typename _Tp> struct identity { typedef _Tp type; };template<typename _Tp> inline _Tp&& forward(typename identity<_Tp>::type&& __t) { return __t; }struct vec{ template<typename _Args> void bar(_Args&& __args)#ifdef BUG ;#else { type(forward<_Args>(__args)); }#endif};#ifdef BUGtemplate<typename _Args> void vec::bar(_Args&& __args) { type(forward<_Args>(__args)); }#endifint main(){ vec v; type c; v.bar(c);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?