This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47568] New: Name lookup: different behavior 4.1.2 / 4.5.0
- From: "matwey.kornilov at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 1 Feb 2011 09:47:49 +0000
- Subject: [Bug c++/47568] New: Name lookup: different behavior 4.1.2 / 4.5.0
- Auto-submitted: auto-generated
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.