http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49223
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-30 11:56:18 UTC --- Created attachment 24394 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24394 gcc46-pr49223.patch Untested fix. The problem is that require_complete_type is just a nop if processing_template_decl, so we can't rely on the type being actually complete.