[Bug 732687] New: gcc 4.5 does not respect ADL inhibition in parentheses
https://bugzilla.novell.com/show_bug.cgi?id=732687 https://bugzilla.novell.com/show_bug.cgi?id=732687#c0 Summary: gcc 4.5 does not respect ADL inhibition in parentheses Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: i686 OS/Version: openSUSE 11.4 Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: pth@suse.com ReportedBy: giecrilj@stegny.2a.pl QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Lynx/2.8.7rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/1.0.0c ADL inhibition is syntax for disabling argument-dependent lookup for function calls by putting the function name in parentheses. g++ does not implement this feature. Reproducible: Always Steps to Reproduce: 1. { cd /tmp && cat << '/*EOF*/' >ADL.cpp && c++ ADL.cpp; } namespace X { class B {}; int f (B); } void f (X::B); void trigger () { int x (((f) (X::B()))); } /*EOF*/ Actual Results: 1. f is ambiguous Expected Results: 1. improper use of void -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=732687 https://bugzilla.novell.com/show_bug.cgi?id=732687#c Christopher Yeleighton <giecrilj@stegny.2a.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.open-std.org/jtc | |1/sc22/wg21/docs/cwg_defect | |s.html#705 Found By|--- |Community User -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=732687 https://bugzilla.novell.com/show_bug.cgi?id=732687#c1 --- Comment #1 from Christopher Yeleighton <giecrilj@stegny.2a.pl> 2011-11-24 22:43:07 UTC --- It is possible to work around this bug by defining a reference to the function and calling that reference instead. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=732687 https://bugzilla.novell.com/show_bug.cgi?id=732687#c Philipp Thomas <pth@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pth@suse.com AssignedTo|pth@suse.com |rguenther@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=732687 https://bugzilla.novell.com/show_bug.cgi?id=732687#c2 Richard Guenther <rguenther@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Richard Guenther <rguenther@suse.com> 2012-01-12 12:18:31 UTC --- Fixed with GCC 4.6: g++-4.6 -S t.C t.C: In function ‘void trigger()’: t.C:3:40: error: void value not ignored as it ought to be -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com