]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
decl.c (store_return_init): Allow classes with explicit ctors to be used with the...
authorBenjamin Kosnik <bkoz@rhino.cygnus.com>
Tue, 14 Oct 1997 18:36:34 +0000 (18:36 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Tue, 14 Oct 1997 18:36:34 +0000 (18:36 +0000)
 * decl.c (store_return_init): Allow classes with explicit ctors to
  be used with the named return values extension.

From-SVN: r15896

gcc/cp/ChangeLog
gcc/cp/decl.c

index d5d187f79db6c4d95dd6c0250471e00e9067c255..2f87e33815472e261f9af0b5638152685e97ca2a 100644 (file)
@@ -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.
index 9c896706875293eebbc45df8e8592706e75966dd..1046209a15afe4a1dfb47cd82cc48b0164433a6f 100644 (file)
@@ -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);
     }
 }