﻿id	summary	reporter	owner	description	type	status	priority	component	version	resolution	keywords	cc
122	Reference assignment	pabuhr		"The last line compiles when the RHS type is wrong.
{{{
int i = 7;
int & r = i;
int * pi = &r;
int & r3 = &r;
}}}
The type of &r is int * allowing the assignment to pi.

In the last line, the initialization puts an implicit & before &r, so the result is address of r, which has type int &, and the assignment is allowed because the types match. But r3 must point to an int, not an int &. I have verified that r3 is pointing at r not i;"	defect	closed	major	cfa-cc	1.0	fixed		
