]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/decl2.c
re PR middle-end/11041 (ICE: const myclass &x = *x; (when operator*() defined))
authorMark Mitchell <mark@codesourcery.com>
Fri, 20 Jun 2003 00:48:44 +0000 (00:48 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 20 Jun 2003 00:48:44 +0000 (00:48 +0000)
commit170b020fe4be4eadea27d389257778d952fb5a13
tree18750127388f053e1dd83e7ae5f29fc9e9fe0bfb
parent7a1d37e9102a1bbc34b4544161ddf283c667bc0b
re PR middle-end/11041 (ICE: const myclass &x = *x; (when operator*() defined))

PR c++/11041
* call.c (initialize_reference): Do not use cp_finish_decl to emit
temporary variables.
* cp-tree.h (static_aggregates): Declare.
(pushdecl_top_level_and_finish): Likewise.
* decl.c (pushdecl_top_level_1): New function.
(pushdecl_top_level): Use it.
(pushdecl_top_level_and_finish): New function.
(initialize_local_var): Remove redundant code.
(cp_finish_decl): Remove support for RESULT_DECLs.  Don't check
building_stmt_tree.
* decl.h (static_aggregates): Remove.
* decl2.c (get_guard): Use pushdecl_top_level_and_finish.
* rtti.c (get_tinfo_decl): Use pushdecl_top_level_and_finish.
(tinfo_base_init): Likewise.

PR c++/11041
* g++.dg/init/ref7.C: New test.

From-SVN: r68236
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl.h
gcc/cp/decl2.c
gcc/cp/rtti.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/ref7.C [new file with mode: 0644]
This page took 0.060021 seconds and 5 git commands to generate.