If I understand it correctly, the attribute in __attribute__ ((regparm (3))) void bar(int x) ...
First gets applied to 'void' and then to the function type. This fails for destructors since they don't have a return type so we never call ConvertDeclSpecToType on them (which is the function that eventually calls processTypeAttrs). The attached patch fixes the bug by calling processTypeAttrs when processing destructors in GetDeclSpecTypeForDeclarator. Is that the correct fix? Cheers, Rafael
pr13396.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
