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
329a89d3
Commit
329a89d3
authored
Feb 19, 2018
by
Jason Merrill
Committed by
Jason Merrill
Feb 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PR c++/84429 - ICE capturing VLA.
* lambda.c (build_capture_proxy): Handle reference refs. From-SVN: r257836
parent
c74c263c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
gcc/cp/ChangeLog
+5
-0
gcc/cp/lambda.c
+4
-3
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-vla1.C
+9
-0
No files found.
gcc/cp/ChangeLog
View file @
329a89d3
2018-02-19 Jason Merrill <jason@redhat.com>
PR c++/84429 - ICE capturing VLA.
* lambda.c (build_capture_proxy): Handle reference refs.
2018-02-19 Jakub Jelinek <jakub@redhat.com>
PR c++/84448
...
...
gcc/cp/lambda.c
View file @
329a89d3
...
...
@@ -451,11 +451,12 @@ build_capture_proxy (tree member, tree init)
{
if
(
PACK_EXPANSION_P
(
init
))
init
=
PACK_EXPANSION_PATTERN
(
init
);
if
(
INDIRECT_REF_P
(
init
))
init
=
TREE_OPERAND
(
init
,
0
);
STRIP_NOPS
(
init
);
}
if
(
INDIRECT_REF_P
(
init
))
init
=
TREE_OPERAND
(
init
,
0
);
STRIP_NOPS
(
init
);
gcc_assert
(
VAR_P
(
init
)
||
TREE_CODE
(
init
)
==
PARM_DECL
);
while
(
is_normal_capture_proxy
(
init
))
init
=
DECL_CAPTURED_VARIABLE
(
init
);
...
...
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-vla1.C
0 → 100644
View file @
329a89d3
// PR c++/84429
// { dg-do compile { target c++11 } }
// { dg-options "" }
void
foo
(
int
i
)
{
char
x
[
i
];
[
&
]{
[
&
]{
return
x
;
};
};
}
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