From: Jakub Jelinek Date: Fri, 18 Sep 2020 22:09:11 +0000 (+0200) Subject: c++: Add testcase for already fixed PR97105 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a5ff2b56bfea0b3e154a15e809c5c42dc3b9e9f;p=gcc.git c++: Add testcase for already fixed PR97105 This has been fixed by the PR bootstrap/97118 fix. 2020-09-19 Jakub Jelinek PR c++/97105 * g++.dg/template/pr97105.C: New test. --- diff --git a/gcc/testsuite/g++.dg/template/pr97105.C b/gcc/testsuite/g++.dg/template/pr97105.C new file mode 100644 index 00000000000..2315972fa60 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/pr97105.C @@ -0,0 +1,6 @@ +// PR c++/97105 +// { dg-do compile } + +template struct A {}; +extern const A<0> a[]; +const A<0> a[] = { {} };