[Bug c++/48530] [C++0x][SFINAE] Hard errors with deleted d'tors

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Wed Apr 27 23:03:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48530

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot
                   |                            |com

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-04-27 23:02:29 UTC ---
The issue noticed by Daniel in Comment #3 seems simple: happens only with
checking enabled and disappears with the below (which passes testing).

Jason, if you want, I can handle this.

/////////////

Index: tree.c
===================================================================
--- tree.c    (revision 173048)
+++ tree.c    (working copy)
@@ -456,6 +456,9 @@ build_cplus_new (tree type, tree init, tsubst_flag
     return rval;

   rval = build_target_expr (slot, rval, complain);
+  if (rval == error_mark_node)
+    return error_mark_node;
+
   TARGET_EXPR_IMPLICIT_P (rval) = 1;

   return rval;



More information about the Gcc-bugs mailing list