<div dir="ltr">Possible that the online one isn't built with assertions enabled (you could test this with other known crashers to see if they reproduce on godbolt with assertion crash dumps or only with raw segfaults)? If that's the case,t hen it's possible that the codepath that should assert continues on and perhaps either has unexpected or even undefined behavior but not a crash.</div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 8, 2018 at 3:08 PM Andy Gibbs via cfe-users <<a href="mailto:cfe-users@lists.llvm.org">cfe-users@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span>Hi,<br>
</span>
<div><br>
</div>
<div>Crazy question, but would someone kind be able to help me a little here.  I have<br>
</div>
<div>a clang 4.0 installation on my linux laptop, which crashes when compiling this
<br>
</div>
<div>code fragment:<br>
</div>
<div><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">  template <const int& X></span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">  constexpr auto fn1() { return X; }</span><br>
</div>
<div><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">  template <typename></span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">  auto fn2()</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">    {</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">    return ([]() {</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">        static constexpr auto value = 12;</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">        return fn1<value>();</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">      })();</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">    }</span><br>
</div>
<div><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">  auto test()</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">    {</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">    return fn2<int>();</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace">    }</span><br>
</div>
<div><br>
</div>
<div>However, doing the same on the godbolt clang 4.0.0 compiler doesn't crash.  What
<br>
</div>
<div>I can't work out is why!?<br>
</div>
<div><br>
</div>
<div>The is the command I run on my machine (using a clean checkout from the clang
<br>
</div>
<div>svn repository) and the output given (the problem seems to be a non-instantiated<br>
</div>
<div>VarDecl in "LocalInstantiationScope::findInstantiationOf()" if you add debug<br>
</div>
<div>information to the compiler code at this point):<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">$ ~/Toolchains/clang-4.0/bin/clang++ -std=c++1z -O2 -S -o - test.cpp -v</span><br>
</div>
<div><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">clang version 4.0.0 (branches/release_40)</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">Target: x86_64-unknown-linux-gnu</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">Thread model: posix</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">InstalledDir: /home/user/Toolchains/clang-4.0/bin</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.3.0</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.3.0</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">Candidate multilib: .;@m64</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">Selected multilib: .;@m64</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal"> "/home/user/Toolchains/clang-4.0/bin/clang-4.0" -cc1 -triple
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">x86_64-unknown-linux-gnu -S -disable-free -main-file-name test.cpp
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-mrelocation-model static -mthread-model posix -fmath-errno -masm-verbose
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-momit-leaf-frame-pointer -v -dwarf-column-info -debugger-tuning=gdb
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-coverage-notes-file /home/user/test/-.gcno -resource-dir
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/home/user/Toolchains/clang-4.0/bin/../lib/clang/4.0.0 -internal-isystem
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-internal-isystem
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/x86_64-linux-gnu/c++/6.3.0</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-internal-isystem
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/x86_64-linux-gnu/c++/6.3.0</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-internal-isystem
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/backward
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-internal-isystem /usr/local/include -internal-isystem
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/home/user/Toolchains/clang-4.0/bin/../lib/clang/4.0.0/include
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-internal-externc-isystem /usr/include/x86_64-linux-gnu
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-std=c++1z -fdeprecated-macro -fdebug-compilation-dir /home/user/test
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-ferror-limit 19 -fmessage-length 92 -fobjc-runtime=gcc -fcxx-exceptions
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-vectorize-slp -o - -x c++ test.cpp</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">clang -cc1 version 4.0.0 based upon LLVM 4.0.0 default target
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">x86_64-unknown-linux-gnu</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">ignoring nonexistent directory "/include"</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">ignoring duplicate directory
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">"/usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/x86_64-linux-gnu/c++/6.3.0"</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">#include "..." search starts here:</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">#include <...> search starts here:</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal"> /usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal"> /usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/x86_64-linux-gnu/c++/6.3.0</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal"> /usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/backward</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal"> /usr/local/include</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal"> /home/user/Toolchains/clang-4.0/bin/../lib/clang/4.0.0/include</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal"> /usr/include/x86_64-linux-gnu</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal"> /usr/include</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">End of search list.</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">clang-4.0:
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/home/user/Toolchains/clang-4.0/source/tools/clang/lib/Sema/</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">SemaTemplateInstantiate.cpp:2814: llvm::PointerUnion<Decl *,
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">LocalInstantiationScope::DeclArgumentPack *>
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">*clang::LocalInstantiationScope::findInstantiationOf(const clang::Decl *):
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">Assertion `isa<LabelDecl>(D) && "declaration not instantiated in this scope"'
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">failed.</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">0  clang-4.0       0x0000000001ac29e5
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">1  clang-4.0       0x0000000001ac30b6</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">2  libpthread.so.0 0x00007f1fd115a0c0</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">3  libc.so.6       0x00007f1fcfceffff gsignal + 207</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">4  libc.so.6       0x00007f1fcfcf142a abort + 362</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">5  libc.so.6       0x00007f1fcfce8e67</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">6  libc.so.6       0x00007f1fcfce8f12</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">7  clang-4.0       0x0000000002f0ecb4
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">clang::LocalInstantiationScope::findInstantiationOf(clang::Decl const*) + 516</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">8  clang-4.0       0x0000000002f2f815
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">clang::Sema::FindInstantiatedDecl(clang::SourceLocation, clang::NamedDecl*,
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">clang::MultiLevelTemplateArgumentList const&) + 181</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">[...]</span><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>The same output from the godbolt compiler gives...<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">clang version 4.0.0 (tags/RELEASE_400/final 299826)</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">Target: x86_64-unknown-linux-gnu</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">Thread model: posix</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">InstalledDir: /opt/compiler-explorer/clang-4.0.0/bin</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">Found candidate GCC installation:
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/opt/compiler-explorer/gcc-7.2.0/lib/gcc/x86_64-linux-gnu/7.2.0</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">Selected GCC installation:
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/opt/compiler-explorer/gcc-7.2.0/lib/gcc/x86_64-linux-gnu/7.2.0</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">Candidate multilib: .;@m64</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">Selected multilib: .;@m64</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal"> "/opt/compiler-explorer/clang-4.0.0/bin/clang-4.0" -cc1 -triple
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">x86_64-unknown-linux-gnu -S -disable-free -disable-llvm-verifier
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-discard-value-names -main-file-name example.cpp -mrelocation-model static
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-munwind-tables -fuse-init-array -target-cpu x86-64 -momit-leaf-frame-pointer -v
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-dwarf-column-info -debug-info-kind=limited -dwarf-version=4
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-debugger-tuning=gdb -coverage-notes-file
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/tmp/compiler-explorer-compiler118118-58-1f6fedy.0ym1/output.gcno -resource-dir
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/opt/compiler-explorer/clang-4.0.0/bin/../lib/clang/4.0.0 -internal-isystem
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/opt/compiler-explorer/gcc-7.2.0/lib/gcc/x86_64-linux-gnu/7.2.0/../../../../</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">include/c++/7.2.0 -internal-isystem
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/opt/compiler-explorer/gcc-7.2.0/lib/gcc/x86_64-linux-gnu/7.2.0/../../../../</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">include/c++/7.2.0/x86_64-linux-gnu -internal-isystem
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/opt/compiler-explorer/gcc-7.2.0/lib/gcc/x86_64-linux-gnu/7.2.0/../../../../</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">include/c++/7.2.0/backward -internal-isystem /usr/local/include
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-internal-isystem
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/opt/compiler-explorer/clang-4.0.0/bin/../lib/clang/4.0.0/include
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-internal-externc-isystem /usr/include/x86_64-linux-gnu
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-std=c++1z -fdeprecated-macro -fdebug-compilation-dir
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/tmp/compiler-explorer-compiler118118-58-1f6fedy.0ym1 -ferror-limit 19
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-fmessage-length 0 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">-mllvm --x86-asm-syntax=intel -o
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">/tmp/compiler-explorer-compiler118118-58-1f6fedy.0ym1/output.s -x c++ <source></span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">clang -cc1 version 4.0.0 based upon LLVM 4.0.0 default target
</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">x86_64-unknown-linux-gnu</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">ignoring nonexistent directory "/include"</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">#include "..." search starts here:</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">#include <...> search starts here:</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal"> /opt/compiler-explorer/gcc-7.2.0/lib/gcc/x86_64-linux-gnu/7.2.0/../../../../</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">include/c++/7.2.0</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal"> /opt/compiler-explorer/gcc-7.2.0/lib/gcc/x86_64-linux-gnu/7.2.0/../../../../</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">include/c++/7.2.0/x86_64-linux-gnu</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal"> /opt/compiler-explorer/gcc-7.2.0/lib/gcc/x86_64-linux-gnu/7.2.0/../../../../</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">include/c++/7.2.0/backward</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal"> /usr/local/include</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal"> /opt/compiler-explorer/clang-4.0.0/bin/../lib/clang/4.0.0/include</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal"> /usr/include/x86_64-linux-gnu</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal"> /usr/include</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">End of search list.</span><br>
</div>
<div><span style="font-family:Consolas,Courier,monospace;font-size:10pt;line-height:normal">Compiler returned: 0</span><br>
</div>
<div><br>
</div>
<div><br>
</div>
<span></span>
<div><span>Does anyone have an ideas why my compiler should crash?  Would anybody please be<br>
</span>
<div>able to test my fragment and report if they also have a crash like me.  I've<br>
</div>
<div>tried the 6.0.0 compiler too with the same results on my machine.  I'm building<br>
</div>
<div>the 7.0.0 compiler now to see if the problem still occurs, but it looks like it<br>
</div>
<div>does (based on the rc-compiler I had already built).<br>
</div>
<div><br>
</div>
<div>(I have a bug report 39916 for a similar issue, but the code in the bug report<br>
</div>
<div>also exhibits problems on godbolt as well as my local compiler, producing both<br>
</div>
<div>invalid code and compiler crashes so I don't think this is an isolated problem.)<br>
</div>
<span></span></div>
<div><br>
</div>
<div>Any help would be gratefully received -- I am pulling my hair out trying to get<br>
</div>
<div>this code to work :o)<br>
</div>
<div><br>
</div>
<div>Thanks,<br>
</div>
<div><br>
</div>
<div>Andy</div>
<div><br>
</div>
</div>
</div>

_______________________________________________<br>
cfe-users mailing list<br>
<a href="mailto:cfe-users@lists.llvm.org" target="_blank">cfe-users@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users</a><br>
</blockquote></div>