From: Paolo Carlini Date: Fri, 6 Oct 2017 10:06:14 +0000 (+0000) Subject: re PR c++/60153 (internal compiler error: in dependent_type_p, at cp/pt.c:21951) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e78b10ceb987b6b71683f3731a283f329e5c6c9e;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 266bedc792a..c25c0189fc1 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 00000000000..b82506783c6 --- /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; +}