Revert "Fix handling of array whose size contains <<"

This reverts commit 2227dc9e53.
This commit is contained in:
Olly Betts 2022-07-27 13:45:03 +12:00
commit 6e931b0399
3 changed files with 1 additions and 9 deletions

View file

@ -7,10 +7,6 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
Version 4.1.0 (in progress)
===========================
2022-07-27: olly
https://sourceforge.net/p/swig/bugs/983/
Fix handling of array whose size contains a left shift operator (<<).
2022-07-27: ZackerySpytz, olly
#1678 Support parsing C++20 templated lambdas.

View file

@ -73,8 +73,4 @@ typedef struct {
cartPosition_t p;
} CartPoseData_t;
/* Test left shift in array size doesn't trigger "Bad template type" error.
* Regression test for https://sourceforge.net/p/swig/bugs/983/ */
int array_shifted_size[(1<<2)];
%}

View file

@ -4,7 +4,7 @@ require "tests.php";
check::functions(array('fn_taking_arrays','newintpointer','setintfrompointer','getintfrompointer','array_pointer_func'));
check::classes(array('arrays','SimpleStruct','ArrayStruct','CartPoseData_t'));
check::globals(array('array_shifted_size'));
check::globals(array());
$ss=new simplestruct();
check::classname('simplestruct',$ss);