implicit-typename1.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 18 行
C
18 行
// The -pedantic option must be omitted to trigger the crash.// { dg-do compile }// { dg-options "" }// PR c++/7982: Crash warning about implicit typename.// The base class refers to another typename, while the// name lookup finds a template.template <typename T> struct X {};template <typename T> struct C { typedef typename T::X X;};template <typename T> struct A : public C<T> { typedef X<int> X;};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?