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: [RFA] PR c++/41570


On 10/11/2009 05:50 PM, Dodji Seketeli wrote:
+  /* Consider:
+     template<class ...> struct Foo;
+     Foo<> f;
+     Here the template parameter pack has no DECL_NAME.
+     So it DIE cannot have any DW_AT_name attribute.
+     Of course, the parameter pack arguments will be an empty set.  */

The comment seems to be suggesting that the null DECL_NAME has something to do with the instantiation giving no template arguments, but in fact the reason it has no DECL_NAME is just that there's no name in the source. I don't think we really need a comment to remind us that no name given leads to no DECL_NAME, as this is the usual pattern.


Let's just use add_name_and_src_coords_attributes like we do for other decls, both here and in gen_formal_parameter_pack_die; they don't need to have names either.

Jason


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