[llvm-bugs] [Bug 45214] New: clang crashes from simple one line code

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 16 03:11:51 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45214

            Bug ID: 45214
           Summary: clang crashes from simple one line code
           Product: clang
           Version: 9.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: schopf.dan at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

Created attachment 23237
  --> https://bugs.llvm.org/attachment.cgi?id=23237&action=edit
source code

I have encountered a compiler crash on Arch Linux as well as on Ubuntu using
clang 9. Using c-reduce I have narrowed the crash down to this simple code:

template <a> b() template b()->b<>

Backtrace:

#0 0x00007fcdf3ad1c2b llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/bin/../lib/libLLVM-9.so+0xb09c2b)
#1 0x00007fcdf3acfaf4 llvm::sys::RunSignalHandlers()
(/usr/bin/../lib/libLLVM-9.so+0xb07af4)
#2 0x00007fcdf3acfc86 (/usr/bin/../lib/libLLVM-9.so+0xb07c86)
#3 0x00007fcdf2c54d70 __restore_rt (/usr/bin/../lib/libc.so.6+0x3bd70)
#4 0x00007fcdf2574830 clang::NestedNameSpecifier::getKind() const
(/usr/bin/../lib/../lib/libclangAST.so.9+0x380830)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200316/d3cade19/attachment.html>


More information about the llvm-bugs mailing list