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
530f4f43
Commit
530f4f43
authored
Mar 26, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for invalid uses of ... in builtin function calls.
From-SVN: r171544
parent
f082c000
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
gcc/go/gofrontend/expressions.cc
+6
-0
gcc/go/gofrontend/parse.cc
+6
-0
No files found.
gcc/go/gofrontend/expressions.cc
View file @
530f4f43
...
...
@@ -6672,6 +6672,12 @@ Find_call_expression::expression(Expression** pexpr)
Expression
*
Builtin_call_expression
::
do_lower
(
Gogo
*
gogo
,
Named_object
*
function
,
int
)
{
if
(
this
->
is_varargs
()
&&
this
->
code_
!=
BUILTIN_APPEND
)
{
this
->
report_error
(
_
(
"invalid use of %<...%> with builtin function"
));
return
Expression
::
make_error
(
this
->
location
());
}
if
(
this
->
code_
==
BUILTIN_NEW
)
{
const
Expression_list
*
args
=
this
->
args
();
...
...
gcc/go/gofrontend/parse.cc
View file @
530f4f43
...
...
@@ -2705,6 +2705,12 @@ Parse::primary_expr(bool may_be_sink, bool may_be_composite_lit,
this
->
advance_token
();
Expression
*
expr
=
this
->
expression
(
PRECEDENCE_NORMAL
,
false
,
true
,
NULL
);
if
(
this
->
peek_token
()
->
is_op
(
OPERATOR_ELLIPSIS
))
{
error_at
(
this
->
location
(),
"invalid use of %<...%> in type conversion"
);
this
->
advance_token
();
}
if
(
!
this
->
peek_token
()
->
is_op
(
OPERATOR_RPAREN
))
error_at
(
this
->
location
(),
"expected %<)%>"
);
else
...
...
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