typename2.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 26 行
C
26 行
// { dg-do compile }// { dg-options "" }// Copyright (C) 2001 Free Software Foundation, Inc.// Contributed by Nathan Sidwell 21 Mar 2002 <nathan@codesourcery.com>// PR 5507. Overzealous implicit typename warningtemplate<typename _CharT>class __ctype_abstract_base{ typedef int mask;};template<typename _CharT>class ctype : public __ctype_abstract_base<_CharT>{ typedef typename ctype::mask mask;};template<typename _CharT>class ctype2 : public __ctype_abstract_base<_CharT>{ typedef mask mask; // { dg-warning "(implicitly a typename)|(implicit typename)" "" }};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?