From 790cc674b649940c8981023a3249db946b6aced4 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Mon, 12 Feb 2018 11:16:33 +0000 Subject: [PATCH] re PR c++/79626 (ICE on invalid code in build_temp (call.c:6489)) 2018-02-12 Paolo Carlini PR c++/79626 * g++.dg/template/crash129.C: New. From-SVN: r257583 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/template/crash129.C | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 gcc/testsuite/g++.dg/template/crash129.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a0bd3b22e4e..d11609de5ef 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-02-12 Paolo Carlini + + PR c++/79626 + * g++.dg/template/crash129.C: New. + 2018-02-12 Olga Makhotina PR target/83828 diff --git a/gcc/testsuite/g++.dg/template/crash129.C b/gcc/testsuite/g++.dg/template/crash129.C new file mode 100644 index 00000000000..9f56b809b26 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/crash129.C @@ -0,0 +1,5 @@ +// PR c++/79626 + +template struct b +{ b(); b(b &); b(b< a, a >); }; // { dg-error "invalid constructor" } +int c(b< int, int >(b< int, int >()); // { dg-error "" } -- 2.30.2