public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* C++ improvements NEWS patch
@ 2010-06-25 16:20 sami wagiaalla
  2010-06-25 16:53 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: sami wagiaalla @ 2010-06-25 16:20 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 94 bytes --]

Apologies for the lateness of this entry.
A little blurb about ADL and operator improvements.

[-- Attachment #2: NEWS-cpp.patch --]
[-- Type: text/plain, Size: 1236 bytes --]

diff --git a/gdb/NEWS b/gdb/NEWS
index 1e1ea39..941963f 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -3,6 +3,35 @@
 
 *** Changes since GDB 7.1
 
+* C++ Improvements:
+
+  ** Argument Dependent Lookup (ADL)
+
+  In C++ ADL lookup directs function search to the namespaces of its
+  arguments even if the namespace has not been imported.
+  For example:
+    namespace A
+      { 
+        class B { }; 
+        void foo (B) { }
+      }
+    ...
+    A::B b
+    foo(b)
+  Here the compiler will search for 'foo' in the namespace of 'b'
+  and find A::foo. GDB now supports this.  This construct is commonly
+  used in the Standard Template Library for operators.
+
+  ** Improved User Defined Operator Support
+
+  In addition to member operators, GDB now supports lookup of operators
+  defined in a namespace and imported with a 'using directive', operators
+  defined in the global scope, operators imported implicitly from an
+  anonymous namespace, and as mentioned in the previous point ADL
+  operators.
+  GDB now also supports proper overload resolution for all the previously
+  mentioned flavors of operators.
+
 * Windows Thread Information Block access.
 
   On Windows targets, GDB now supports displaying the Windows Thread

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: C++ improvements NEWS patch
  2010-06-25 16:20 C++ improvements NEWS patch sami wagiaalla
@ 2010-06-25 16:53 ` Eli Zaretskii
  2010-06-25 17:08   ` Sami Wagiaalla
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2010-06-25 16:53 UTC (permalink / raw)
  To: sami wagiaalla; +Cc: gdb-patches

> Date: Fri, 25 Jun 2010 12:05:20 -0400
> From: sami wagiaalla <swagiaal@redhat.com>
> 
> A little blurb about ADL and operator improvements.

Thanks.

> +  and find A::foo. GDB now supports this.  This construct is commonly
                    ^^
Two spaces between sentences, please.

> +  In addition to member operators, GDB now supports lookup of operators
> +  defined in a namespace and imported with a 'using directive', operators
                                              ^^^^^^^^^^^^^^^^^^^
"a `using' directive" (quoting fixed)

> +  defined in the global scope, operators imported implicitly from an
> +  anonymous namespace, and as mentioned in the previous point ADL
> +  operators.           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     ^^^^^^^^^
"and the ADL operators mentioned in the previous entry"

Okay with these changes.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: C++ improvements NEWS patch
  2010-06-25 16:53 ` Eli Zaretskii
@ 2010-06-25 17:08   ` Sami Wagiaalla
  0 siblings, 0 replies; 3+ messages in thread
From: Sami Wagiaalla @ 2010-06-25 17:08 UTC (permalink / raw)
  To: gdb-patches

Thanks for the quick review!.. I will make the changes and commit.

Sami

On 06/25/2010 12:52 PM, Eli Zaretskii wrote:
>> Date: Fri, 25 Jun 2010 12:05:20 -0400
>> From: sami wagiaalla<swagiaal@redhat.com>
>>
>> A little blurb about ADL and operator improvements.
>
> Thanks.
>
>> +  and find A::foo. GDB now supports this.  This construct is commonly
>                      ^^
> Two spaces between sentences, please.
>
>> +  In addition to member operators, GDB now supports lookup of operators
>> +  defined in a namespace and imported with a 'using directive', operators
>                                                ^^^^^^^^^^^^^^^^^^^
> "a `using' directive" (quoting fixed)
>
>> +  defined in the global scope, operators imported implicitly from an
>> +  anonymous namespace, and as mentioned in the previous point ADL
>> +  operators.           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>       ^^^^^^^^^
> "and the ADL operators mentioned in the previous entry"
>
> Okay with these changes.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-25 17:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-25 16:20 C++ improvements NEWS patch sami wagiaalla
2010-06-25 16:53 ` Eli Zaretskii
2010-06-25 17:08   ` Sami Wagiaalla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).