$OpenBSD: patch-gcc_cp_typeck_c,v 1.2 2008/07/25 20:50:26 martynas Exp $
--- gcc/cp/typeck.c.orig	Sun Feb 22 18:27:37 2004
+++ gcc/cp/typeck.c	Fri Jul 25 12:34:58 2008
@@ -2739,6 +2739,9 @@ build_function_call_real (function, params, flags)
   if (warn_format)
     check_function_format (NULL, TYPE_ATTRIBUTES (fntype), coerced_params);
 
+  if (warn_bounded)
+    check_function_bounded (NULL, TYPE_ATTRIBUTES (fntype), coerced_params);
+
   /* Recognize certain built-in functions so we can make tree-codes
      other than CALL_EXPR.  We do this when it enables fold-const.c
      to do something useful.  */
