openbsd-ports/lang/gcc/3.3/patches/patch-gcc_cp_call_c

15 lines
535 B
Plaintext
Raw Normal View History

$OpenBSD: patch-gcc_cp_call_c,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
--- gcc/cp/call.c.orig Wed Jul 28 04:17:21 2004
+++ gcc/cp/call.c Mon Jan 3 10:17:44 2005
@@ -4616,6 +4616,10 @@ build_over_call (cand, args, flags)
check_function_format (NULL, TYPE_ATTRIBUTES (TREE_TYPE (fn)),
converted_args);
+ if (warn_bounded)
+ check_function_bounded (NULL, TYPE_ATTRIBUTES (TREE_TYPE (fn)),
+ converted_args);
+
/* Avoid actually calling copy constructors and copy assignment operators,
if possible. */