http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51727
--- Comment #22 from Tobias Schlüter <tobi at gcc dot gnu.org> 2012-10-13 11:29:41 UTC --- Created attachment 28440 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28440 patch that doesn't use c++ Here's a patch that works essentially the same way, but doesn't use C++. It's about 50 lines longer than the other patch and produces identical module files in the small examples. It's not yet ready for submission, as I haven't yet added all the necessary comments, also maybe some variables could be named better, but I would do this if you think it's worthy fixing this on the old branches as well. I would then submit the C++ patch for the trunk and the C version for the older branches.