From 11ffae58473472766960b2f6c59108e331a9eba7 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Wed, 29 Jan 2020 15:12:46 -0500 Subject: [PATCH] c++: Add new test [PR88092] This test got fixed by r10-1976-gdaaa6fcc70ffe66bd56f5819ad4ee78fecd54bb6 so let's add it to the testsuite. PR c++/88092 * g++.dg/cpp2a/nontype-class31.C: New test. --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp2a/nontype-class31.C | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp2a/nontype-class31.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b62e7effb59..a8d563b1205 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-01-29 Marek Polacek + + PR c++/88092 + * g++.dg/cpp2a/nontype-class31.C: New test. + 2020-01-29 Jeff Law +struct S { + constexpr S(...) { } +}; + +template S(T) -> S; + +template struct foo { }; + +template +void fn () +{ + auto t = s; + foo f1; + foo f2; +} -- 2.30.2