From: Patrick Palka Date: Fri, 3 Apr 2020 15:21:56 +0000 (-0400) Subject: c++: Add test for PR c++/93211 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51ecad3c0327418c6e20ef47c6c5a8015bb99b2c;p=gcc.git c++: Add test for PR c++/93211 The fix for PR c++/90711 also fixed this PR. gcc/testsuite/ChangeLog: PR c++/93211 PR c++/90711 * g++.dg/template/koenig11.C: New test. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cf20783d8a6..0a08024b277 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2020-04-03 Patrick Palka + + PR c++/93211 + PR c++/90711 + * g++.dg/template/koenig11.C: New test. + 2020-04-03 Andre Vieira * gcc.target/arm/mve/intrinsics/mve_vector_float.c: Put -mfpu=auto back. diff --git a/gcc/testsuite/g++.dg/template/koenig11.C b/gcc/testsuite/g++.dg/template/koenig11.C new file mode 100644 index 00000000000..d69709bab59 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/koenig11.C @@ -0,0 +1,11 @@ +// PR c++/93211 +// { dg-do compile { target c++11 } } + +template +void g(T); + +template +void f() {} + +template +void f() {} // { dg-bogus "redefinition" }