$OpenBSD: patch-gcc_cp_typeck_c,v 1.1.1.1 2005/01/03 15:21:26 espie Exp $
--- gcc/cp/typeck.c.orig	Sun Feb 22 17:27:37 2004
+++ gcc/cp/typeck.c	Mon Jan  3 10:17:44 2005
@@ -2739,6 +2739,9 @@ build_function_call_real (function, para
   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.  */
