From 257792c5e2aa931f4bf532aedd0d5d19b44567f3 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 18 Oct 2017 07:43:06 +0000 Subject: [PATCH] re PR c++/68884 (template of value template crashes the compiler) 2017-10-18 Paolo Carlini PR c++/68884 * g++.dg/cpp0x/variadic-crash4.C: New. From-SVN: r253843 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/variadic-crash4.C | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/variadic-crash4.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d5fc8d8e44a..cd8a3e65fed 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-18 Paolo Carlini + + PR c++/68884 + * g++.dg/cpp0x/variadic-crash4.C: New. + 2017-10-18 Paolo Carlini PR c++/79474 diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic-crash4.C b/gcc/testsuite/g++.dg/cpp0x/variadic-crash4.C new file mode 100644 index 00000000000..2974fe933e1 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/variadic-crash4.C @@ -0,0 +1,14 @@ +// PR c++/68884 +// { dg-do compile { target c++11 } } + +namespace std { + template struct A { static constexpr _Tp value = __v; }; +typedef A true_type; +} +template struct VsA; +template struct ValueTemplate { + template