NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

Re: [netcdfgroup] ncgen bug

The CDL example in the ncgen manpage has an enum within a compound var and it triggers the bug too.

On 12/16/19 10:30 PM, Dave Allured - NOAA Affiliate via netcdfgroup wrote:
cat > bug.cdl << EOF
netcdf bug {
types:
   int enum enum1 {A = -1, B = 0, C = 1} ;
   compound comp1 {
     enum1 e1;
   };

dimensions:
   dim1 = 2 ;
variables:
   enum1 var1(dim1) ;
   comp1 var2(dim1) ;
data:
   var1 = A, A ;
   var2 = {A}, {A} ;
}
EOF