aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c-omp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-family/c-omp.cc')
-rw-r--r--gcc/c-family/c-omp.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-family/c-omp.cc b/gcc/c-family/c-omp.cc
index 7e20e5a..5f2db14 100644
--- a/gcc/c-family/c-omp.cc
+++ b/gcc/c-family/c-omp.cc
@@ -669,6 +669,8 @@ c_finish_omp_atomic (location_t loc, enum tree_code code,
bool
c_omp_interop_t_p (tree type)
{
+ if (type == error_mark_node)
+ return false;
type = TYPE_MAIN_VARIANT (type);
return (TREE_CODE (type) == ENUMERAL_TYPE
&& TYPE_NAME (type)