<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - clang crash"
   href="https://bugs.llvm.org/show_bug.cgi?id=43895">43895</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang crash
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>llvm@alex.lanin.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22765" name="attach_22765" title="input file reduced by creduce-clang-crash">attachment 22765</a> <a href="attachment.cgi?id=22765&action=edit" title="input file reduced by creduce-clang-crash">[details]</a></span>
input file reduced by creduce-clang-crash

Hi,

unfortunately I don't have a very nice small example, but attached file crashes
clang (self compiled, a few days ago). I've generated it via:
../llvm/clang/utils/creduce-clang-crash.py crash.sh crash.cpp --llvm-bin
../llvm-build/bin


Stack dump:
0.      Program arguments: /usr/local/bin/clang-10 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name
creduce-clang-crash-output.cpp -mrelocation-model static -mthread-model posix
-mframe-pointer=all -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info
-debugger-tuning=gdb -resource-dir /usr/local/lib/clang/10.0.0
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/x86_64-linux-gnu/c++/5.4.0
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/local/lib/clang/10.0.0/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -fdeprecated-macro
-fdebug-compilation-dir /mnt/c/Git/clangcrash -ferror-limit 19 -fmessage-length
0 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -faddrsig -o
/tmp/creduce-clang-crash-output-19f8b3.o -x c++ creduce-clang-crash-output.cpp
1.      creduce-clang-crash-output.cpp:186:97: current parser token ';'
2.      creduce-clang-crash-output.cpp:116:8: parsing namespace 'std'
3.      creduce-clang-crash-output.cpp:185:65: parsing function body
'std::SubTestMsgQueuIpc_TestReadTimeout_Test::TestBody'
4.      creduce-clang-crash-output.cpp:185:65: in compound statement ('{}')
5.      creduce-clang-crash-output.cpp:104:49: instantiating class definition
'std::result_of<std::_Bind<std::_Mem_fn<void (std::SubTestMsgQueuIpc::*)()>
(std::SubTestMsgQueuIpc_TestReadTimeout_Test *)> ()>'
6.      creduce-clang-crash-output.cpp:105:82: instantiating class definition
'std::__result_of_impl<false, false, std::_Bind<std::_Mem_fn<void
(std::SubTestMsgQueuIpc::*)()> (std::SubTestMsgQueuIpc_TestReadTimeout_Test
*)>>'
  #0 0x000000000258a4ca llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/bin/clang-10+0x258a4ca)
  #1 0x000000000258833c llvm::sys::RunSignalHandlers()
(/usr/local/bin/clang-10+0x258833c)
  #2 0x00000000025884a5 SignalHandler(int) (/usr/local/bin/clang-10+0x25884a5)
  #3 0x00007f03a6df1390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
  #4 0x000000000419c22e
clang::ASTContext::getUnqualifiedArrayType(clang::QualType, clang::Qualifiers&)
(/usr/local/bin/clang-10+0x419c22e)
  #5 0x0000000003f06442
clang::Sema::CompareReferenceRelationship(clang::SourceLocation,
clang::QualType, clang::QualType, bool&, bool&, bool&, bool&)
(/usr/local/bin/clang-10+0x3f06442)
  #6 0x0000000003f125f4 TryReferenceInit(clang::Sema&, clang::Expr*,
clang::QualType, clang::SourceLocation, bool, bool)
(/usr/local/bin/clang-10+0x3f125f4)
  #7 0x0000000003f1acca TryCopyInitialization(clang::Sema&, clang::Expr*,
clang::QualType, bool, bool, bool, bool) (.constprop.1042)
(/usr/local/bin/clang-10+0x3f1acca)
  #8 0x0000000003f1b277
clang::OverloadCandidateSet::CompleteCandidates(clang::Sema&,
clang::OverloadCandidateDisplayKind, llvm::ArrayRef<clang::Expr*>,
clang::SourceLocation, llvm::function_ref<bool (clang::OverloadCandidate&)>)
(/usr/local/bin/clang-10+0x3f1b277)
  #9 0x0000000003f23ef3
clang::OverloadCandidateSet::NoteCandidates(std::pair<clang::SourceLocation,
clang::PartialDiagnostic>, clang::Sema&, clang::OverloadCandidateDisplayKind,
llvm::ArrayRef<clang::Expr*>, llvm::StringRef, clang::SourceLocation,
llvm::function_ref<bool (clang::OverloadCandidate&)>)
(/usr/local/bin/clang-10+0x3f23ef3)
 #10 0x0000000003f2727f
clang::Sema::BuildCallToObjectOfClassType(clang::Scope*, clang::Expr*,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation) (/usr/local/bin/clang-10+0x3f2727f)
....</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>