]> gcc.gnu.org Git - gcc.git/commit
decl2.c (build_anon_union_vars): Don't crash on empty sub-unions.
authorMark Mitchell <mark@markmitchell.com>
Mon, 25 May 1998 10:28:16 +0000 (10:28 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 25 May 1998 10:28:16 +0000 (10:28 +0000)
commit67ffc8124f94d059eba8bcda0d1cfa070bc4eae0
tree585de9a1e35f1808041f780e2175364e45a326dd
parentc21f27a76270b3e7d2e23679524d2f39b506cef4
decl2.c (build_anon_union_vars): Don't crash on empty sub-unions.

1998-05-25  Mark Mitchell  <mark@markmitchell.com>
* decl2.c (build_anon_union_vars): Don't crash on empty sub-unions.
* cp-tree.h (processing_template_parmlist): Declare.
* decl.c (pushtag): Don't call push_template_decl when we
shouldn't.
* pt.c (processing_template_parmlist): New variable.
(TMPL_ARGS_HAVE_MULTIPLE_LEVELS): New macro.
(complete_template_args): Use it.
(add_to_template_args): Likewise.
(innermost_args): Likewise.
(tsubst): Likewise.
(begin_template_parm_list): Use processing_template_parmlist.
(end_template_parm_list): Likewise.
* cp-tree.h (ANON_UNION_TYPE_P): New macro.
* decl.c (grokdeclarator): Use it.
* decl2.c (grok_x_components): Likewise.
* init.c (initializing_context): Likewise.
* method.c (do_build_copy_constructor): Likewise.
(do_build_assign_ref): Likewise.
* search.c (compute_access): Likewise.
* typeck.c (build_component_ref): Likewise.
* decl.c (grokdeclarator): Don't give a cv-qualified version of an
unnamed type a typedef name "for linkage purposes".
* pt.c (lookup_template_class): Don't look at
IDENTIFIER_CLASS_VALUE when there's no current_class_type.
* method.c (build_overload_int): Handle error cases gracefully.
* pt.c (instantiate_decl): Handle static member variables
correctly.
* pt.c (tsubst): Use the tsubst'd type when producing new
TEMPLATE_PARM_INDEX nodes.

From-SVN: r20045
14 files changed:
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/init.c
gcc/cp/method.c
gcc/cp/pt.c
gcc/cp/search.c
gcc/cp/typeck.c
gcc/testsuite/g++.old-deja/g++.other/typedef1.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/crash5.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/memtemp75.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/spec18.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/static2.C [new file with mode: 0644]
This page took 0.056424 seconds and 5 git commands to generate.