bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: typeof() fatal error


From: arnold
Subject: Re: typeof() fatal error
Date: Wed, 08 Jan 2020 12:00:41 -0700
User-agent: Heirloom mailx 12.5 7/5/10

Thank you for the reports and the reproducers. The fix is below
and will be pushed to git shortly.

Arnold

Denis Shirokov <address@hidden> wrote:

> please note about more simple example:
>
>
> BEGIN{
>
>       test( someidentifier ) }
>
>       
> func  test( a ) {
>
>       print typeof( a )
>       
>       a
>       
>       print typeof( a ) }
>
> kind Regards
> Denis Shirokov
-----------------------------
diff --git a/builtin.c b/builtin.c
index 0bd94bf9..4cd38484 100644
--- a/builtin.c
+++ b/builtin.c
@@ -4121,6 +4121,7 @@ do_typeof(int nargs)
                }
                break;
        case Node_var_new:
+       case Node_array_ref:
                res = "untyped";
                deref = false;
                break;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]