From: Wolfgang Bangerth Date: Wed, 22 Oct 2003 23:50:43 +0000 (+0000) Subject: Work around a bug in old gccs. X-Git-Tag: v8.0.0~16074 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=029ff543c520c2e0b72f191a8d785fcd6e20c303;p=dealii.git Work around a bug in old gccs. git-svn-id: https://svn.dealii.org/trunk@8136 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/fe/mapping_q.cc b/deal.II/deal.II/source/fe/mapping_q.cc index 89f194d1c4..6117836c10 100644 --- a/deal.II/deal.II/source/fe/mapping_q.cc +++ b/deal.II/deal.II/source/fe/mapping_q.cc @@ -872,11 +872,24 @@ add_quad_support_points(const Triangulation<3>::cell_iterator &cell, // for the present face const bool face_orientation = cell->face_orientation(face_no); + // work around a bug in older + // gcc versions (2.95) when an + // array in a conditional + // decays too quickly to a + // pointer +#ifndef DEAL_II_ARRAY_CONDITIONAL_DECAY_BUG const unsigned int (&face_vertex_to_cell_vertex)[vertices_per_face] +#else + const unsigned int *face_vertex_to_cell_vertex +#endif = (face_orientation ? face_vertex_to_cell_vertex1[face_no] : face_vertex_to_cell_vertex2[face_no]); +#ifndef DEAL_II_ARRAY_CONDITIONAL_DECAY_BUG const unsigned int (&face_line_to_cell_line)[lines_per_face] +#else + const unsigned int *face_line_to_cell_line +#endif = (face_orientation ? face_line_to_cell_line1[face_no] : face_line_to_cell_line2[face_no]);