Skip to content

Commit f251371

Browse files
committed
Survive ENAMEID better
1 parent ea5138f commit f251371

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

py/dml/structure.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,9 +1461,10 @@ def mkobj2(obj, obj_specs, params, each_stmts):
14611461
# to site. For name collision detection.
14621462
symbols = {param.name: param.site for param in params}
14631463
if dml.globals.dml_version == (1, 4):
1464-
objname = param_str(obj, 'name')
1464+
objname = param_str_fixup(obj, 'name', obj.ident)
14651465
if not ident_re.match(objname):
1466-
raise ENAMEID(param_expr_site(obj, 'name'), objname)
1466+
report(ENAMEID(param_expr_site(obj, 'name'), objname))
1467+
objname = obj.ident
14671468
obj.name = objname
14681469
else:
14691470
obj.name = obj.ident

0 commit comments

Comments
 (0)