On Wed, Oct 19, 2011 at 06:08:15AM +0200, Jason Merrill wrote:
> I'll backport that hunk, thanks for catching this.
Great ! You're welcome Jason.
Yvan
On 10/18/2011 09:57 AM, Yvan ROUX wrote:
int main() {
const int Ci = 0;
const int&rCi = Ci;
if (!(&Ci ==&rCi)) return 1;
return 0;
}
The program has the expected behaviour if you use a 4.5 gcc or the trunk, but
if you compile it with a 4.6 one (even with the b
Hi,
I have the small program below, which check the binding of a reference :
int main() {
const int Ci = 0;
const int &rCi = Ci;
if (!(&Ci == &rCi)) return 1;
return 0;
}
If my understanding of the standard (8.5.3) is correct, the reference is
an lvalue (rCi), the