Eigenstate: myrddin-dev mailing list

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

Re: Out-of-bounds error when printing out a function value


On Tue, 5 Dec 2017 01:13:57 -0800, Ori Bernstein <ori@xxxxxxxxxxxxxx> wrote:

> Should be fixed for all extern const symbols, and not just functions. I
> was overly specific in my first fix. s/isconstfn/d->decl.isconst \&\& d->decl.isextern/g

Also, to be clear, the only time that this was broken was specifically for
extern const symbols declared within a function.

	extern const foo
	const main = {
		// use foo
	}

has always been working.

I don't think I actually indended to support extern symbols with function
scope, but it turns out to be a very small special case, so it's tentatively
added.

If it does cause more problems, I'll probably just make it an error to
declare extern symbols inside functions.

-- 
    Ori Bernstein

References:
Out-of-bounds error when printing out a function valuenml <arumakanil@xxxxxxxxx>
Re: Out-of-bounds error when printing out a function valuenml <arumakanil@xxxxxxxxx>
Re: Out-of-bounds error when printing out a function valueOri Bernstein <ori@xxxxxxxxxxxxxx>