ICE in gcc/c/c-typeck.c:c_finish_omp_clauses -- The error_mark_node is not an OpenMP mappable type

Jakub Jelinek jakub@redhat.com
Thu Mar 6 18:26:00 GMT 2014


On Thu, Mar 06, 2014 at 07:08:18PM +0100, Thomas Schwinge wrote:
> > This does not happen for C++, because gcc/cp/decl2.c:cp_omp_mappable_type
> > catches the »type == error_mark_node« case -- so I suggest to do the same
> > generically/for C.  OK to commit the following to trunk, once tested?
> 
> Test results are looking fine.
> 
> > commit 63aa927ea54304f6bfd119ad7f72a0322e059637
> > Author: Thomas Schwinge <thomas@codesourcery.com>
> > Date:   Wed Mar 5 17:06:50 2014 +0100
> > 
> >     The error_mark_node is not an OpenMP mappable type.
> >     
> >     	gcc/
> >     	* langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
> >     	an OpenMP mappable type.
> >     	gcc/c/
> >     	* c-decl.c (c_decl_attributes): Use
> >     	lang_hooks.types.omp_mappable_type.
> >     	* c-typeck.c (c_finish_omp_clauses): Likewise.
> >     	gcc/testsuite/
> >     	* c-c++-common/gomp/map-1.c: Extend.

Ok for trunk.

	Jakub



More information about the Gcc-patches mailing list