This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/53756 (-g and C++1y auto)
- From: Jason Merrill <jason at redhat dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 29 Jan 2014 11:42:49 -0500
- Subject: Re: C++ PATCH for c++/53756 (-g and C++1y auto)
- Authentication-results: sourceware.org; auth=none
- References: <52E7E353 dot 3020604 at redhat dot com> <52E7F80B dot 7000202 at oracle dot com> <52E81B01 dot 6090401 at redhat dot com> <52E8229D dot 8010502 at oracle dot com>
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.
Also, your ChangeLog has nothing to do with the patch. :)
Jason