Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
482b883f
Commit
482b883f
authored
Aug 17, 1998
by
Jason Merrill
Committed by
Jason Merrill
Aug 17, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (grokparms): No, here.
From-SVN: r21801
parent
2d914461
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
gcc/cp/ChangeLog
+2
-0
gcc/cp/decl.c
+11
-5
No files found.
gcc/cp/ChangeLog
View file @
482b883f
1998-08-17 Jason Merrill <jason@yorick.cygnus.com>
1998-08-17 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (grokparms): No, here.
* decl.c (grokdeclarator): Catch parm with pointer to array of
* decl.c (grokdeclarator): Catch parm with pointer to array of
unknown bound here...
unknown bound here...
* method.c (process_overload_item): ...not here.
* method.c (process_overload_item): ...not here.
...
...
gcc/cp/decl.c
View file @
482b883f
...
@@ -9607,11 +9607,6 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist)
...
@@ -9607,11 +9607,6 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist)
type
=
TREE_TYPE
(
type
);
type
=
TREE_TYPE
(
type
);
}
}
if
(
decl_context
==
PARM
&&
TREE_CODE
(
type
)
==
ARRAY_TYPE
&&
TYPE_DOMAIN
(
type
)
==
NULL_TREE
)
cp_error
(
"parameter type includes pointer to array of unknown bound `%T'"
,
type
);
/* Merge any constancy or volatility into the target type
/* Merge any constancy or volatility into the target type
for the pointer. */
for the pointer. */
...
@@ -10825,6 +10820,17 @@ grokparms (first_parm, funcdef_flag)
...
@@ -10825,6 +10820,17 @@ grokparms (first_parm, funcdef_flag)
signature_error
(
decl
,
type
);
signature_error
(
decl
,
type
);
any_error
=
1
;
/* Seems like a good idea. */
any_error
=
1
;
/* Seems like a good idea. */
}
}
else
if
(
POINTER_TYPE_P
(
type
))
{
tree
t
=
type
;
while
(
POINTER_TYPE_P
(
t
)
||
(
TREE_CODE
(
t
)
==
ARRAY_TYPE
&&
TYPE_DOMAIN
(
t
)
!=
NULL_TREE
))
t
=
TREE_TYPE
(
t
);
if
(
TREE_CODE
(
t
)
==
ARRAY_TYPE
)
cp_error
(
"parameter type `%T' includes pointer to array of unknown bound"
,
type
);
}
}
}
if
(
TREE_CODE
(
decl
)
==
VOID_TYPE
)
if
(
TREE_CODE
(
decl
)
==
VOID_TYPE
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment