projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f66751
)
* decl.c: Update comment.
author
Jason Merrill
<jason@gcc.gnu.org>
Thu, 5 May 2016 13:33:35 +0000
(09:33 -0400)
committer
Jason Merrill
<jason@gcc.gnu.org>
Thu, 5 May 2016 13:33:35 +0000
(09:33 -0400)
From-SVN: r235923
gcc/cp/decl.c
patch
|
blob
|
history
diff --git
a/gcc/cp/decl.c
b/gcc/cp/decl.c
index 5f9031f0664ee480900d12de735cff21539f43f6..8dbc730f3a697ee3358a867f68b54b14eebe6c63 100644
(file)
--- 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;
}