https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84465
Bug ID: 84465 Summary: FAIL: g++.dg/template/overload15.C Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nsz at gcc dot gnu.org Target Milestone: --- i see FAIL: g++.dg/template/overload15.C -std=c++98 (test for excess errors) FAIL: g++.dg/template/overload15.C -std=c++11 (test for excess errors) FAIL: g++.dg/template/overload15.C -std=c++14 (test for excess errors) on arm-* targets spawn -ignore SIGHUP /B/gcc/testsuite/g++/../../xg++ -B/B/gcc/testsuite/g++/../../ /S/gcc/testsuite/g++.dg/template/overload15.C -fno-diagnostics-show-caret -fdiagnostics-color=never -nostdinc++ -I/B/arm-none-linux-gnueabihf/libstdc++-v3/include/arm-none-linux-gnueabihf -I/B/arm-none-linux-gnueabihf/libstdc++-v3/incl /S/gcc/testsuite/g++.dg/template/overload15.C: In function 'void f()': /S/gcc/testsuite/g++.dg/template/overload15.C:14:10: error: call of overloaded 'f<0>(char (*)[1])' is ambiguous /S/gcc/testsuite/g++.dg/template/overload15.C:5:6: note: candidate: 'void f(char (*)[(((0 - 1) > N) ? 1 : 7)]) [with unsigned int N = 0]' /S/gcc/testsuite/g++.dg/template/overload15.C:8:6: note: candidate: 'void f(char (*)[(((0 - 1) > N) ? 1 : 7)]) [with unsigned int N = 0]' /S/gcc/testsuite/g++.dg/template/overload15.C:15:10: error: no matching function for call to 'f<0>(char (*)[7])' /S/gcc/testsuite/g++.dg/template/overload15.C:5:6: note: candidate: 'template<unsigned int N> void f(char (*)[(((0 - 1) > N) ? 1 : 7)])' /S/gcc/testsuite/g++.dg/template/overload15.C:5:6: note: template argument deduction/substitution failed: /S/gcc/testsuite/g++.dg/template/overload15.C:15:8: note: cannot convert '& y' (type 'char (*)[7]') to type 'char (*)[1]' /S/gcc/testsuite/g++.dg/template/overload15.C:8:6: note: candidate: 'template<unsigned int N> void f(char (*)[(((0 - 1) > N) ? 1 : 7)])' /S/gcc/testsuite/g++.dg/template/overload15.C:8:6: note: template argument deduction/substitution failed: /S/gcc/testsuite/g++.dg/template/overload15.C:15:8: note: cannot convert '& y' (type 'char (*)[7]') to type 'char (*)[1]' compiler exited with status 1 FAIL: g++.dg/template/overload15.C -std=c++11 (test for excess errors) Excess errors: /S/gcc/testsuite/g++.dg/template/overload15.C:14:10: error: call of overloaded 'f<0>(char (*)[1])' is ambiguous /S/gcc/testsuite/g++.dg/template/overload15.C:15:10: error: no matching function for call to 'f<0>(char (*)[7])'