Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/lookup/template3.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// Origin PR c++/47957 // { dg-do compile } struct S { int m; S() : m(0) { } }; struct Base { typedef S T; }; template<class T> struct Derived : public Base { int foo() { T a; // This is Base::T, not the template parameter. return a.m; } }; int main() { Derived<char> d; return d.foo(); }