$OpenBSD: patch-gcc_cp_call_c,v 1.2 2005/10/30 19:24:11 espie Exp $
--- gcc/cp/call.c.orig	Mon Apr  4 09:42:15 2005
+++ gcc/cp/call.c	Sun Oct 30 13:19:46 2005
@@ -4599,6 +4599,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.  */
 
