Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/template/template-id-3.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR c++/48261 typedef double (*gaddType)(double,double); struct Foo2 { static gaddType add; }; template<typename T> struct Something { void work() { double x=T::template add<double>(5.0,6.0); // { dg-error "add" } } }; int main() { Something<Foo2> s2; s2.work(); }