From: Paolo Carlini Date: Thu, 1 Mar 2018 17:01:54 +0000 (+0000) Subject: re PR c++/79410 (internal compiler error: in gimplify_init_ctor_preeval, at gimplify... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26a0cc94f32ed95616d1618857d35d2ef1506118;p=gcc.git re PR c++/79410 (internal compiler error: in gimplify_init_ctor_preeval, at gimplify.c:3489) 2018-03-01 Paolo Carlini PR c++/79410 * g++.dg/torture/pr79410.C: New. From-SVN: r258106 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d1acff64fb9..7a45412179d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-03-01 Paolo Carlini + + PR c++/79410 + * g++.dg/torture/pr79410.C: New. + 2018-03-01 Martin Liska PR sanitizer/82484 diff --git a/gcc/testsuite/g++.dg/torture/pr79410.C b/gcc/testsuite/g++.dg/torture/pr79410.C new file mode 100644 index 00000000000..d5df56bb393 --- /dev/null +++ b/gcc/testsuite/g++.dg/torture/pr79410.C @@ -0,0 +1,10 @@ +struct duration { + long val; + static constexpr duration max() { return {}; } +}; +struct S { + duration max = duration::max(); +}; +void Ice(S& s) { + s = {}; +}