From e78b10ceb987b6b71683f3731a283f329e5c6c9e Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Fri, 6 Oct 2017 10:06:14 +0000 Subject: re PR c++/60153 (internal compiler error: in dependent_type_p, at cp/pt.c:21951) 2017-10-06 Paolo Carlini PR c++/60153 * g++.dg/cpp0x/variadic-crash3.C: New. From-SVN: r253484 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/variadic-crash3.C | 32 ++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/variadic-crash3.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 266bedc..c25c018 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-06 Paolo Carlini + + PR c++/60153 + * g++.dg/cpp0x/variadic-crash3.C: New. + 2017-10-06 Jakub Jelinek PR tree-optimization/82434 diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic-crash3.C b/gcc/testsuite/g++.dg/cpp0x/variadic-crash3.C new file mode 100644 index 0000000..b825067 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/variadic-crash3.C @@ -0,0 +1,32 @@ +// PR c++/60153 +// { dg-do compile { target c++11 } } + +enum class foo :int {x,y,z}; + +template +class A +{ +public: + A() + { + } +}; + +template +struct B +{ + typedef T value_type; + static const T val; +}; + +template +struct madscience_intitializer +{ + template + using ret_type = A; +}; + +int main() +{ + madscience_intitializer,B >::ret_type<1,foo::y> a; +} -- cgit v1.1