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
e9f3968b
Commit
e9f3968b
authored
Mar 16, 2013
by
Jason Merrill
Committed by
Jason Merrill
Mar 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* parser.c (cp_parser_lambda_expression): Use nreverse.
From-SVN: r196730
parent
e2adfdad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
gcc/cp/ChangeLog
+2
-0
gcc/cp/parser.c
+2
-13
No files found.
gcc/cp/ChangeLog
View file @
e9f3968b
2013-03-16 Jason Merrill <jason@redhat.com>
* parser.c (cp_parser_lambda_expression): Use nreverse.
PR c++/56447
PR c++/55532
* pt.c (instantiate_class_template_1): Instantiate lambda capture
...
...
gcc/cp/parser.c
View file @
e9f3968b
...
...
@@ -8195,19 +8195,8 @@ cp_parser_lambda_expression (cp_parser* parser)
cp_parser_skip_to_end_of_block_or_statement
(
parser
);
/* The capture list was built up in reverse order; fix that now. */
{
tree
newlist
=
NULL_TREE
;
tree
elt
,
next
;
for
(
elt
=
LAMBDA_EXPR_CAPTURE_LIST
(
lambda_expr
);
elt
;
elt
=
next
)
{
next
=
TREE_CHAIN
(
elt
);
TREE_CHAIN
(
elt
)
=
newlist
;
newlist
=
elt
;
}
LAMBDA_EXPR_CAPTURE_LIST
(
lambda_expr
)
=
newlist
;
}
LAMBDA_EXPR_CAPTURE_LIST
(
lambda_expr
)
=
nreverse
(
LAMBDA_EXPR_CAPTURE_LIST
(
lambda_expr
));
if
(
ok
)
maybe_add_lambda_conv_op
(
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