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
The following sequence reliably produces a BoundsError on current master for me:
$ julia-0.4 --inline=no
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.4.0-dev+2607 (2015-01-11 06:43 UTC)
_/ |\__'_|_|_|\__'_| | Commit 02c0501 (0 days old master)
|__/ | x86_64-unknown-linux-gnu
julia> f(args...) = map(a -> a, args)
f (generic function with 1 method)
julia> f()
ERROR: BoundsError: attempt to access ()
at index [1]
in f at none:1
in eval at no file
When --inline is not passed then f() returns () as expected. This does not affect 0.3-release as far as I can see since there is no --inline=no flag.
Declaring the function with @noinline does not produce the error:
julia> @noinline f(args...) = map(a -> a, args)
f (generic function with 1 method)
julia> f()
()
This error breaks @which when it is passed a zero argument method call since Base.typesof uses map is a similar manner to f in the example provided here.
The text was updated successfully, but these errors were encountered:
The following sequence reliably produces a
BoundsError
on current master for me:When
--inline
is not passed thenf()
returns()
as expected. This does not affect0.3-release
as far as I can see since there is no--inline=no
flag.Declaring the function with
@noinline
does not produce the error:This error breaks
@which
when it is passed a zero argument method call sinceBase.typesof
usesmap
is a similar manner tof
in the example provided here.The text was updated successfully, but these errors were encountered: