From: Paolo Carlini Date: Fri, 12 May 2017 11:24:56 +0000 (+0000) Subject: re PR c++/67687 (ICE initializing constexpr member with constexpr constructor) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7e95bdbca9d3c949a809fda0947e047d1c618b0;p=gcc.git re PR c++/67687 (ICE initializing constexpr member with constexpr constructor) 2017-05-12 Paolo Carlini PR c++/67687 * g++.dg/cpp0x/constexpr-ice17.C: New. From-SVN: r247964 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b1c69d29594..c32d766d195 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-05-12 Paolo Carlini + + PR c++/67687 + * g++.dg/cpp0x/constexpr-ice17.C: New. + 2017-05-12 Richard Biener PR tree-optimization/80713 diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-ice17.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-ice17.C new file mode 100644 index 00000000000..cbf7bf8dabc --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-ice17.C @@ -0,0 +1,20 @@ +// PR c++/67687 +// { dg-do compile { target c++11 } } + +template +struct dimension{ + template + constexpr dimension(T...){} +}; + +struct accessor_base{ + template + constexpr accessor_base(T...){} +}; + +template +struct accessor_mixed{ + +private: + static constexpr accessor_base s_args_constexpr{dimension{0} }; +};