[Bug c++/50787] New: [4.6 Regression] reference fails to bind directly to variable

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Oct 19 04:12:00 GMT 2011


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;
}



More information about the Gcc-bugs mailing list