[GRASS-dev] [GRASS GIS] #1765: variable length array error in r.terraflow with clang
GRASS GIS
trac at osgeo.org
Sun Oct 21 10:22:25 PDT 2012
#1765: variable length array error in r.terraflow with clang
-----------------------+----------------------------------------------------
Reporter: kyngchaos | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Compiling | Version: svn-develbranch6
Keywords: clang | Platform: MacOSX
Cpu: OSX/Intel |
-----------------------+----------------------------------------------------
Another clang compiler issue in r.terraflow:
{{{
/Users/Shared/src/GRASS/svn/dev6-r53518/dist.x86_64-apple-
darwin11.4.2/include/grass/iostream/empq_impl.h:1360:41: error:
variable length array of non-POD element type
'ExtendedEltMergeType<keyvalue<cclabel_type>, int>'
ExtendedEltMergeType<T,Key> in_objects[arity];
}}}
A bit of searching tells me that non-POD variable length arrays are not
part of the C++ spec, but supported as an extension in some compilers.
clang does not.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1765>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list