------- Comment #12 from jason at gcc dot gnu dot org 2010-01-07 21:18 ------- It basically seems to me that the modifications made by ipa_modify_formal_parameters are incompatible with proper debugging information; the method is still a method as far as the language is concerned even if the actual code generated optimizes away the this pointer.
I think it would be better to represent those sorts of modifications via cloning rather than by modifying the primary decls. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42336