From 51ecad3c0327418c6e20ef47c6c5a8015bb99b2c Mon Sep 17 00:00:00 2001 From: Patrick Palka Date: Fri, 3 Apr 2020 11:21:56 -0400 Subject: [PATCH] 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. --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/template/koenig11.C | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gcc/testsuite/g++.dg/template/koenig11.C 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" } -- 2.30.2