diff --git a/src/cmd/gc/lex.c b/src/cmd/gc/lex.c index 48c200ccea7..1bf51a70a44 100644 --- a/src/cmd/gc/lex.c +++ b/src/cmd/gc/lex.c @@ -854,7 +854,7 @@ talph: ungetc(c); rune = getr(); // 0xb7 ยท is used for internal names - if(!isalpharune(rune) && !isdigitrune(rune) && rune != 0xb7) + if(!isalpharune(rune) && !isdigitrune(rune) && (importpkg == nil || rune != 0xb7)) yyerror("invalid identifier character 0x%ux", rune); cp += runetochar(cp, &rune); } else if(!isalnum(c) && c != '_')