netcdf-c/ncdump/ref_keyword1.cdl
Dennis Heimbigner 90b912b7e8 Allow use of type keywords as identifier in formats that do not support that type.
Built-in type-name keywords are currently flagged when used as
identifiers in formats that do not support that type.  So if a
user declares a dimension named "string" in a classic .cdl file,
it causes an error.

This PR modifies ncgen to allow those format-specific type keywords
to be used as identifiers when compiling to formats that do not
support that type. Also added a test for this.

Also a couple of misc. changes to conditionalize some debug output.
2020-06-05 17:03:29 -06:00

9 lines
123 B
Plaintext

netcdf keyword1 {
dimensions:
string = 128;
int64 = 64;
variables:
int string(string);
int int64(int64);
}