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: [RFC] PR c++/44188


On 05/20/2010 07:05 AM, Dodji Seketeli wrote:
-      mod_type_die = lookup_type_die (qualified_type);
+      /* Handle C++ typedefs naming anonymous structs.  */
+      if (handle_naming_typedef
+	  && is_naming_typedef_decl (TYPE_NAME (qualified_type)))
+	mod_type_die =  gen_typedef_die (TYPE_NAME (qualified_type),
+					 context_die);
+      else
+	mod_type_die = lookup_type_die (qualified_type);

For controlling infinite recursion, rather than add a new parameter here, how about changing gen_typedef_die to call gen_type_die directly for this case so that the lookup_type_die here will succeed?


Jason


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