diff --git a/test/boost_no_exp_func_tem_arg.ipp b/test/boost_no_exp_func_tem_arg.ipp index 938b0a51..7f0a105e 100644 --- a/test/boost_no_exp_func_tem_arg.ipp +++ b/test/boost_no_exp_func_tem_arg.ipp @@ -15,6 +15,18 @@ namespace boost_no_explicit_function_template_arguments{ +struct foo +{ + template int bar(){return 0;} + template int bar(){return 1;} +}; + +int test_0() +{ + return 0; +} + + template bool foo_17041(int j) { @@ -23,6 +35,11 @@ bool foo_17041(int j) int test() { + foo f; + int a = f.template bar(); + int b = f.template bar<2>(); + if((a !=0) || (b != 1))return -1; + if(0 == foo_17041<8>(8)) return -1; if(0 == foo_17041<4>(4)) return -1; if(0 == foo_17041<5>(5)) return -1;