From 26a0cc94f32ed95616d1618857d35d2ef1506118 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 1 Mar 2018 17:01:54 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/torture/pr79410.C | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 gcc/testsuite/g++.dg/torture/pr79410.C 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 = {}; +} -- 2.30.2