This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/47568] New: Name lookup: different behavior 4.1.2 / 4.5.0


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

           Summary: Name lookup: different behavior 4.1.2 / 4.5.0
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: matwey.kornilov@gmail.com


Created attachment 23193
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23193
test

There is different behavior with the attached code.

when compiled with 4.1.2:
assign 1
assign 1

when compiled with 4.5.0:
assign 1
assign a

Versions:
g++-4.1 (GCC) 4.1.2 20070115 (prerelease) (SUSE Linux)
gcc (SUSE Linux) 4.5.0 20100604 [gcc-4_5-branch revision 160292]

I don't know which behaviors are supported by other versions, but I think that
the only one of them is right.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]