Index: gcc/cp/decl.c =================================================================== --- gcc/cp/decl.c (revision 162) +++ gcc/cp/decl.c (working copy) @@ -4816,8 +4816,11 @@ && !COMPLETE_TYPE_P (TREE_TYPE (decl))) TYPE_DECL_SUPPRESS_DEBUG (decl) = 1; - rest_of_decl_compilation (decl, DECL_CONTEXT (decl) == NULL_TREE, - at_eof); + if (!opaque_type_p (TREE_TYPE (decl)) + && (TREE_CODE (TREE_TYPE (decl)) != RECORD_TYPE + || !CLASSTYPE_IS_ARCHETYPE (TREE_TYPE (decl)))) + rest_of_decl_compilation (decl, DECL_CONTEXT (decl) == NULL_TREE, + at_eof); goto finish_end; }