lookup6.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 16 行
C
16 行
// { dg-do assemble }// Based on bug report by Miniussi <miniussi@ilog.fr>class t {};template <class T> struct A { typedef T t; typedef T u; };template <class T> struct B : public A<T> { // according to [temp.dep.type], `t' and `u' cannot be dependent types, // and so there's no reason to delay lookup to specialization time. void f(t p); // this is ::t [temp.dep]/3 void f(typename A<T>::t p); // { dg-bogus "" } redefinition void g(u p); // { dg-error "" } unknown type name};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?