diff options
author | Benjamin Kosnik <bkoz@rhino.cygnus.com> | 1997-10-14 18:36:34 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 1997-10-14 18:36:34 +0000 |
commit | dae1d6f685ae076d22441aaedd79859e2f720779 (patch) | |
tree | 80bacef3ef7cb7318c6915fd04d8b45c14163a6c /gcc | |
parent | 31c0e01bc561994ca65c1d43530ab23351818cf3 (diff) | |
download | gcc-dae1d6f685ae076d22441aaedd79859e2f720779.zip gcc-dae1d6f685ae076d22441aaedd79859e2f720779.tar.gz gcc-dae1d6f685ae076d22441aaedd79859e2f720779.tar.bz2 |
decl.c (store_return_init): Allow classes with explicit ctors to be used with the named return values extension.
* decl.c (store_return_init): Allow classes with explicit ctors to
be used with the named return values extension.
From-SVN: r15896
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d5d187f..2f87e33 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +Mon Oct 13 17:41:26 1997 Benjamin Kosnik <bkoz@rhino.cygnus.com> + + * decl.c (store_return_init): Allow classes with explicit ctors to + be used with the named return values extension. + + Fri Oct 10 12:21:11 1997 Jason Merrill <jason@yorick.cygnus.com> * pt.c (instantiate_decl): Fix previous change. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 9c89670..1046209 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -11835,7 +11835,7 @@ store_return_init (return_id, init) add_tree (build_min_nt (RETURN_INIT, return_id, copy_to_permanent (init))); else - cp_finish_decl (decl, init, NULL_TREE, 0, LOOKUP_ONLYCONVERTING); + cp_finish_decl (decl, init, NULL_TREE, 0, 0); } } |