[Bug c++/47568] New: Name lookup: different behavior 4.1.2 / 4.5.0
matwey.kornilov at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Feb 1 09:47:00 GMT 2011
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.
More information about the Gcc-bugs
mailing list