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

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

From-SVN: r180206
This commit is contained in:
Jason Merrill 2011-10-19 16:42:50 -04:00 committed by Jason Merrill
parent 3f3af9dfcc
commit 2bb385d908
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -0,0 +1,8 @@
// PR c++/50787
// { dg-do run }
int main() {
const int Ci = 0;
const int &rCi = Ci;
if (!(&Ci == &rCi)) __builtin_abort();
}