[Bug c++/56130] New: __attribute__((deprecated)) does not affect C++ reference

chen3feng at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 28 13:16:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56130

             Bug #: 56130
           Summary: __attribute__((deprecated)) does not affect C++
                    reference
    Classification: Unclassified
           Product: gcc
           Version: 4.7.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: chen3feng@gmail.com


int g_nn;
int& g_n __attribute__((deprecated)) = g_nn;

int main()
{
    g_n = 1;
}

Compile with -Wall
No any warning.



More information about the Gcc-bugs mailing list