From: Kai Tietz Date: Fri, 12 Dec 2014 17:17:58 +0000 (+0100) Subject: re PR c++/63996 (Infinite loop in invalid C++14 constexpr fn) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c89d52a8d2e0ceba8e26a25f4d2fc6612a5fcda;p=gcc.git re PR c++/63996 (Infinite loop in invalid C++14 constexpr fn) PR c++/63996 * g++.dg/cpp1y/pr63996.C: New file. From-SVN: r218683 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2c7b6159adb..8e5b4248528 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-12-12 Kai Tietz + + PR c++/63996 + * g++.dg/cpp1y/pr63996.C: New file. + 2014-12-12 Richard Sandiford Joseph Myers diff --git a/gcc/testsuite/g++.dg/cpp1y/pr63996.C b/gcc/testsuite/g++.dg/cpp1y/pr63996.C new file mode 100644 index 00000000000..c89d5429590 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/pr63996.C @@ -0,0 +1,10 @@ +// { dg-do compile { target c++14 } } + +constexpr int +foo (int i) +{ + int a[i] = { }; +} + +constexpr int j = foo (1); // { dg-error "is not a constant expression" } +