Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/parse/parse6.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* PR c++/3012 */ /* { dg-do compile } */ class A { public: template <class T> void foo() const { } }; template <class T> class B { public: void bar(const A& a) const { // Compile used to fail with parse error before `;' token a.foo<double>(); } }; int main() { A a; B<int> b; b.bar(a); }