This is the mail archive of the gcc-patches@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]

Re: C++ PATCH for c++/53756 (-g and C++1y auto)


On 01/29/2014 05:42 PM, Jason Merrill wrote:
On 01/28/2014 04:35 PM, Paolo Carlini wrote:
+      if (is_cxx ())
+    {
+      tree name = TYPE_NAME (type);
+      if (TREE_CODE (name) == TYPE_DECL)
+        name = DECL_NAME (name);
+      if (name == get_identifier ("auto"))
+        return 0;

Rather than duplicate this code, let's factor it out into a separate function.
Yeah, you are totally right, we have at least 3/4 uses of that. Care to propose a name?
Also, your ChangeLog has nothing to do with the patch.  :)
:) I attached 58581 instead of 58561.

Paolo.


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