projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0664ee2
)
'*' and '&' can start declarations with implicit int.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 24 Nov 2008 10:38:41 +0000
(10:38 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 24 Nov 2008 10:38:41 +0000
(10:38 +0000)
[r23930]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
cc95a43
..
435aab4
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-10798,8
+10798,11
@@
static void parse_external(void)
DECLARATION_START_NO_EXTERN
case T_IDENTIFIER:
case T___extension__:
- case '(': /* for function declarations with implicit return type and
- * parenthesized declarator, i.e. (f)(void); */
+ /* tokens below are for implicit int */
+ case '&': /* & x; -> int& x; (and error later, because C++ has no
+ implicit int) */
+ case '*': /* * x; -> int* x; */
+ case '(': /* (x); -> int (x); */
parse_external_declaration();
return;