Commit 2bb385d9 by Jason Merrill Committed by Jason Merrill

re PR c++/50787 (reference fails to bind directly to variable)

	PR c++/50787
	* g++.dg/init/ref20.C: New.

From-SVN: r180206
parent 3f3af9df
2011-10-19 Jason Merrill <jason@redhat.com>
PR c++/50787
* g++.dg/init/ref20.C: New.
2011-10-19 Kai Tietz <ktietz@redhat.com>
PR middle-end/50795
......
// PR c++/50787
// { dg-do run }
int main() {
const int Ci = 0;
const int &rCi = Ci;
if (!(&Ci == &rCi)) __builtin_abort();
}
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