netcdf-c/ncdump/ref_keyword2.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

7 lines
77 B
Plaintext

netcdf keyword2 {
dimensions:
string = 128;
variables:
int string(string);
}