re PR c++/82835 (ICE on valid code with -fopenmp)
authorJakub Jelinek <jakub@redhat.com>
Tue, 7 Nov 2017 20:51:05 +0000 (21:51 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 7 Nov 2017 20:51:05 +0000 (21:51 +0100)
commit4dbeb716123290202774ec5127462946bdfacbd1
tree58f678236f303012b63383c3d2287adcd26473e0
parentacd377795f259233d3b9c5cd81a9156c1c3081f9
re PR c++/82835 (ICE on valid code with -fopenmp)

PR c++/82835
* cp-gimplify.c (cxx_omp_clause_apply_fn): For methods pass i - 1 to
convert_default_arg instead of i.

* testsuite/libgomp.c++/pr82835.C: New test.

From-SVN: r254511
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/pr82835.C [new file with mode: 0644]