re PR c++/85015 (internal compiler error: tree check: expected class 'type', have...
authorJakub Jelinek <jakub@redhat.com>
Fri, 23 Mar 2018 20:54:50 +0000 (21:54 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 23 Mar 2018 20:54:50 +0000 (21:54 +0100)
commitc9db39e16e1644f929b3018e42d9674402bed409
tree59b947b5145dddc2327a2bf96ec2694e1a4cfcfa
parentc1e7c3f2015247369b040a3ab24e85d4d68f51f4
re PR c++/85015 (internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in build_int_cst, at tree.c:1360)

PR c++/85015
* decl.c (compute_array_index_type): Set osize to mark_rvalue_use
result.

* g++.dg/cpp0x/pr85015.C: New test.

From-SVN: r258822
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr85015.C [new file with mode: 0644]