From 1a854f0007155086d85d6087f318dbea1bdd62d9 Mon Sep 17 00:00:00 2001 From: jason Date: Thu, 5 May 2016 13:33:35 +0000 Subject: [PATCH] * decl.c: Update comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235923 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 5f9031f0664e..8dbc730f3a69 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.47.3