[llvm-bugs] [Bug 32028] New: Bad code leads to unreachable in llvm::DIType *CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile *Unit)

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 21 05:33:07 PST 2017


            Bug ID: 32028
           Summary: Bad code leads to unreachable in llvm::DIType
                    *CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: filcab at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Via "flacs"

Flags to generate (at least some) debug info are required for the unreachable
to execute. Related to r293207 (PR0091R3: Implement parsing support for using
templates as types).

[llvm-cmake-debug]% ./bin/clang --version    # Updated just now
clang version 5.0.0 (trunk 295714) (llvm/trunk 295716)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Users/filcab/work/llvm-cmake-debug/./bin
[llvm-cmake-debug]% cat a.cpp
template<typename T>
struct A

A a = A<int>();
[llvm-cmake-debug]% ./bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S
-debug-info-kind=limited -std=c++1z -o /dev/null a.cpp
type should have been unwrapped!
UNREACHABLE executed at
Stack dump:
0.      Program arguments: ./bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S
-debug-info-kind=limited -std=c++1z -o /dev/null a.cpp
1.      <eof> parser at end of file
2.      a.cpp:6:3: LLVM IR generation of declaration 'a'
3.      a.cpp:6:3: Generating code for declaration 'a'
[1]    58227 abort      ./bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S

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/20170221/77769fdc/attachment.html>

More information about the llvm-bugs mailing list