view gcc/testsuite/g++.dg/parse/ambig7.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++/60361

struct Helper
{
  Helper(int a, void (*pfunc)());
};

template <int I> void function();

const int A = 1;
const int B = 2;

Helper testOk(A, function<A>);
Helper testOk2(int(A), function<B>);
Helper testOk3((int(A)), function<A>);
Helper testFail(int(A), function<A>);