Fix seg fault for global declarations declared erroneously without a name

This commit is contained in:
William S Fulton 2017-03-10 19:42:31 +00:00
commit b851e45e0a
3 changed files with 29 additions and 16 deletions

View file

@ -0,0 +1,6 @@
%module xxx
struct Funcs {};
short (Funcs::* *)(bool) = 0;
short (Funcs::* const*)(bool) = 0;

View file

@ -0,0 +1,2 @@
cpp_bad_global_memberptr.i:5: Error: Missing symbol name for global declaration
cpp_bad_global_memberptr.i:6: Error: Missing symbol name for global declaration