You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some cases with initializing static arrays in sequences which the parser fails to process.
Example 1:
int main()
{
int variable, array_one[100], array_two[500];
return 0;
}
produces:
./cppparsertest -p failed_testcases/many_arrays.cpp
Error: Unexpected '[', while in context=ctxGeneral(1), found at line#2
int variable, array_one[100], array_two[
Example 2:
int main()
{
int variable = 0, array[100];
return 0;
}
produces:
./cppparsertest -p failed_testcases/one_array.cpp
Error: Unexpected '[', while in context=ctxGeneral(1), found at line#2
int variable=0, array[
At the same time it parses these examples:
int main()
{
int variable_one = 0, variable_two = 1;
return 0;
}
int main()
{
int array_one[500], array_two[500];
return 0;
}
The text was updated successfully, but these errors were encountered:
There are some cases with initializing static arrays in sequences which the parser fails to process.
Example 1:
produces:
Example 2:
produces:
At the same time it parses these examples:
The text was updated successfully, but these errors were encountered: