<p dir="auto">The following gives a syntax error on master as well as 1.5:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; f(@m for i in 1:3
           println(i)
       end)
ERROR: syntax: missing comma or ) in argument list
Stacktrace:
 [1] top-level scope at none:1"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">f</span>(<span class="pl-c1">@m</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">3</span>
           <span class="pl-c1">println</span>(i)
       <span class="pl-k">end</span>)
ERROR<span class="pl-k">:</span> syntax<span class="pl-k">:</span> <span class="pl-c1">missing</span> comma or ) <span class="pl-k">in</span> argument list
Stacktrace<span class="pl-k">:</span>
 [<span class="pl-c1">1</span>] top<span class="pl-k">-</span>level scope at none<span class="pl-k">:</span><span class="pl-c1">1</span></pre></div>
<p dir="auto">Interestingly enough, it works just fine if I replace the <code class="notranslate">for</code> loop with a <code class="notranslate">begin</code>/<code class="notranslate">let</code>/<code class="notranslate">function</code>/... block. It even parses if I just wrap the <code class="notranslate">for</code> loop in <code class="notranslate">begin ... end</code> or braces.</p>
<p dir="auto">Duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="351592596" data-permission-text="Title is private" data-url="https://github.com/JuliaIO/JLD2.jl/issues/101" data-hovercard-type="issue" data-hovercard-url="/JuliaIO/JLD2.jl/issues/101/hovercard" href="https://github.com/JuliaIO/JLD2.jl/issues/101">JuliaIO/JLD2.jl#101</a></p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Julia Version 1.0.0
Commit 5d4eaca0c9 (2018-08-08 20:58 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i5-4670 CPU @ 3.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, haswell)
Environment:
  JULIA_EDITOR = subl"><pre class="notranslate">Julia Version <span class="pl-c1">1.0</span>.<span class="pl-c1">0</span>
Commit <span class="pl-c1">5</span>d4eaca0c9 (<span class="pl-c1">2018</span><span class="pl-k">-</span><span class="pl-c1">08</span><span class="pl-k">-</span><span class="pl-c1">08</span> <span class="pl-c1">20</span><span class="pl-k">:</span><span class="pl-c1">58</span> UTC)
Platform Info<span class="pl-k">:</span>
  OS<span class="pl-k">:</span> macOS (x86_64<span class="pl-k">-</span>apple<span class="pl-k">-</span>darwin14.<span class="pl-c1">5.0</span>)
  CPU<span class="pl-k">:</span> <span class="pl-c1">Intel</span>(R) <span class="pl-c1">Core</span>(TM) i5<span class="pl-k">-</span><span class="pl-c1">4670</span> CPU @ <span class="pl-c1">3.40</span>GHz
  WORD_SIZE<span class="pl-k">:</span> <span class="pl-c1">64</span>
  LIBM<span class="pl-k">:</span> libopenlibm
  LLVM<span class="pl-k">:</span> libLLVM<span class="pl-k">-</span><span class="pl-c1">6.0</span>.<span class="pl-c1">0</span> (ORCJIT, haswell)
Environment<span class="pl-k">:</span>
  JULIA_EDITOR <span class="pl-k">=</span> subl</pre></div>
<p dir="auto">On current JLD2#master 8e2d9b8 and DataFrames v0.13.0 the following operations segfault</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="using FileIO, DataFrames

save(&quot;dftest.jld2&quot;, &quot;df&quot;, DataFrame(rand(10,5)))
load(&quot;dftest.jld2&quot;, &quot;df&quot;)"><pre class="notranslate"><span class="pl-k">using</span> FileIO, DataFrames

<span class="pl-c1">save</span>(<span class="pl-s"><span class="pl-pds">"</span>dftest.jld2<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>df<span class="pl-pds">"</span></span>, <span class="pl-c1">DataFrame</span>(<span class="pl-c1">rand</span>(<span class="pl-c1">10</span>,<span class="pl-c1">5</span>)))
<span class="pl-c1">load</span>(<span class="pl-s"><span class="pl-pds">"</span>dftest.jld2<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>df<span class="pl-pds">"</span></span>)</pre></div>
<p dir="auto"><a href="https://gist.github.com/skleinbo/f15fa8851bdb0f7bd18ac7d706d4a02b">Complete error message including lldb backtrace.</a></p>
<p dir="auto">I thought I'd report it here too since it's segfaulting.</p>