re PR c++/7754 (ICE SIGSEGV on union with template parameter)
authorMark Mitchell <mark@codesourcery.com>
Tue, 8 Oct 2002 22:52:14 +0000 (22:52 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 8 Oct 2002 22:52:14 +0000 (22:52 +0000)
commitedebf865cf4fd067a88729e26dc83470221fc9ac
tree932d6c0647fd6654e71d64076f075d0a22735d76
parent87ec8de9e77db04c5f5abde6cdbabb0337816142
re PR c++/7754 (ICE SIGSEGV on union with template parameter)

PR c++/7754
* decl2.c (finish_anon_union): Do not expand anonymous unions when
procesing template functions.
* pt.c (tsubst_decl, case VAR_DECL): Try to complete the variable
type. Call layout_decl.
(tsubst_expr, case DECL_STMT): Handle anonymous unions.

From-SVN: r57961
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/pt.c