aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lambda.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2013-12-23 23:22:23 -0500
committerJason Merrill <jason@gcc.gnu.org>2013-12-23 23:22:23 -0500
commit8bebb9532b4724afacf514dfe1f0d127cb7f6f07 (patch)
treeccb1d3945a9e65e121e7d243cfcf504784f3e1dd /gcc/cp/lambda.c
parent8fc13bad8e7c8f63aae7b0f58fe7e9a02ce11a29 (diff)
downloadgcc-8bebb9532b4724afacf514dfe1f0d127cb7f6f07.zip
gcc-8bebb9532b4724afacf514dfe1f0d127cb7f6f07.tar.gz
gcc-8bebb9532b4724afacf514dfe1f0d127cb7f6f07.tar.bz2
re PR c++/59271 (a.C:16:21: internal compiler error: in strip_typedefs, at cp/tree.c:1315)
PR c++/59271 * lambda.c (build_capture_proxy): Use build_cplus_array_type. From-SVN: r206193
Diffstat (limited to 'gcc/cp/lambda.c')
-rw-r--r--gcc/cp/lambda.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c
index 24aa2c5..bd8df1d 100644
--- a/gcc/cp/lambda.c
+++ b/gcc/cp/lambda.c
@@ -377,8 +377,8 @@ build_capture_proxy (tree member)
tree ptr = build_simple_component_ref (object, field);
field = next_initializable_field (DECL_CHAIN (field));
tree max = build_simple_component_ref (object, field);
- type = build_array_type (TREE_TYPE (TREE_TYPE (ptr)),
- build_index_type (max));
+ type = build_cplus_array_type (TREE_TYPE (TREE_TYPE (ptr)),
+ build_index_type (max));
type = build_reference_type (type);
REFERENCE_VLA_OK (type) = true;
object = convert (type, ptr);