Commit 9c89d52a by Kai Tietz Committed by Kai Tietz

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
parent 5a5e54cd
2014-12-12 Kai Tietz <ktietz@redhat.com>
PR c++/63996
* g++.dg/cpp1y/pr63996.C: New file.
2014-12-12 Richard Sandiford <richard.sandiford@arm.com>
Joseph Myers <joseph@codesourcery.com>
......
// { 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" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment