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: unassignedclangb...@nondot.org
          Reporter: schopf....@gmail.com
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
                    neeil...@live.com, richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to