From 17ee9a4e8c02267da1e5d7485ec9bdab83072b45 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 5 May 2016 09:33:35 -0400 Subject: [PATCH] * decl.c: Update comment. From-SVN: r235923 --- gcc/cp/decl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 5f9031f0664..8dbc730f3a6 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -11422,7 +11422,8 @@ grokdeclarator (const cp_declarator *declarator, } else if (current_function_decl) { - /* FIXME need arm citation */ + /* 7.1.1: There can be no static function declarations within a + block. */ error ("cannot declare static function inside another function"); invalid_static = 1; } -- 2.30.2