Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions check/fixes.frm
Original file line number Diff line number Diff line change
Expand Up @@ -4448,6 +4448,21 @@ assert warning?("Excess information in symmetric properties")
assert warning?("Illegal information in number of arguments properties")
assert warning?("Undefined $-variable")
*--#] Issue766 :
*--#[ Issue782 :
S $s;
V $v;
I $i;
F $f;
Set $ss;
Local $test = 1;
.end
assert compile_error?("Illegally formed name in symbol statement")
assert compile_error?("Illegally formed name in vector statement")
assert compile_error?("Illegally formed name in index statement")
assert compile_error?("Illegally formed function/tensor name")
assert compile_error?("Illegal name for set")
assert compile_error?("Illegal name for expression")
*--#] Issue782 :
*--#[ PullReq535 :
* This test requires more than the specified 50K workspace.
#:maxtermsize 200
Expand Down
3 changes: 2 additions & 1 deletion sources/comexpr.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ int DoExpr(UBYTE *inp, int type, int par)
else p++;
}
if ( *p ) { /* Variety with the = sign */
if ( ( q = SkipAName(inp) ) == 0 || q[-1] == '_' ) {
q = SkipAName(inp);
if ( *inp == '$' || q == 0 || q[-1] == '_' ) {
MesPrint("&Illegal name for expression");
error = 1;
if ( q[-1] == '_' ) {
Expand Down
1 change: 1 addition & 0 deletions sources/names.c
Original file line number Diff line number Diff line change
Expand Up @@ -3262,6 +3262,7 @@ int TestName(UBYTE *name)
}
while ( *name ) {
if ( *name == '_' ) return(-1);
if ( *name == '$' ) return(-1);
name++;
}
return(0);
Expand Down
Loading