[Bug c/47939] Missing DW_TAG_typedef for qualified types
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 1 14:36:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47939
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-01 14:36:31 UTC ---
Better patch, I'm giving that a quick test.
Index: c-decl.c
===================================================================
--- c-decl.c (revision 170589)
+++ c-decl.c (working copy)
@@ -5038,7 +5038,7 @@ grokdeclarator (const struct c_declarato
error_at (loc, "conflicting named address spaces (%s vs %s)",
c_addr_space_name (as1), c_addr_space_name (as2));
- if (!flag_gen_aux_info && (TYPE_QUALS (element_type)))
+ if (!flag_gen_aux_info && type != element_type && (TYPE_QUALS
(element_type)))
type = TYPE_MAIN_VARIANT (type);
type_quals = ((constp ? TYPE_QUAL_CONST : 0)
| (restrictp ? TYPE_QUAL_RESTRICT : 0)
More information about the Gcc-bugs
mailing list