This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50787] New: [4.6 Regression] reference fails to bind directly to variable
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 19 Oct 2011 04:11:48 +0000
- Subject: [Bug c++/50787] New: [4.6 Regression] reference fails to bind directly to variable
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50787
Bug #: 50787
Summary: [4.6 Regression] reference fails to bind directly to
variable
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jason@gcc.gnu.org
http://gcc.gnu.org/ml/gcc/2011-10/msg00272.html
int main() {
const int Ci = 0;
const int &rCi = Ci;
if (!(&Ci == &rCi)) return 1;
return 0;
}