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

📄 implicit-typename1.c

📁 linux下的gcc编译器
💻 C
字号:
// 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; // { dg-warning "lookup|dependent base|typename" }};

⌨️ 快捷键说明

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