From: Marek Polacek Date: Tue, 19 Dec 2017 20:44:19 +0000 (+0000) Subject: re PR c++/82231 (ICE when deducing non-type template parameter value whose type depen... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64cc30c5ee15d8987cb565bccd9d29fad7b7a567;p=gcc.git re PR c++/82231 (ICE when deducing non-type template parameter value whose type depends on a non-type `auto` template parameter from function arguments) PR c++/82231 * g++.dg/cpp1z/nontype-auto14.C: New test. From-SVN: r255839 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b32cb7a09fa..a87d64e9dd1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-12-19 Marek Polacek + + PR c++/82231 + * g++.dg/cpp1z/nontype-auto14.C: New test. + 2017-12-18 Jeff Law PR tree-optimization/83477 diff --git a/gcc/testsuite/g++.dg/cpp1z/nontype-auto14.C b/gcc/testsuite/g++.dg/cpp1z/nontype-auto14.C new file mode 100644 index 00000000000..d7ab133baaa --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1z/nontype-auto14.C @@ -0,0 +1,14 @@ +// PR c++/82231 +// { dg-options -std=c++17 } + +template +struct x {}; + +template +void f(x) { } + +int +main() +{ + f<0>(x<1>{}); +}