Commit 2a3fa75a by Paolo Carlini Committed by Paolo Carlini

re PR c++/60430 (static_assert and reference to const/constexpr)

2017-05-12  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/60430
	* g++.dg/cpp0x/pr60430.C: New.

From-SVN: r247986
parent e8bf7c7b
2017-05-12 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60430
* g++.dg/cpp0x/pr60430.C: New.
2017-05-12 Jeff Law <law@redhat.com>
* g++.dg/tree-ssa/ssa-dom-thread-4.c: Update expected output.
......
// { dg-do compile { target c++11 } }
constexpr const int A = 42;
const int &B = A;
static_assert(&A == &B, "Bug");
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