[LLVMbugs] [Bug 16091] New: Crash in codegen with deducted return type in overloaded template member function with -gdwarf-2

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 21 07:14:26 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16091

            Bug ID: 16091
           Summary: Crash in codegen with deducted return type in
                    overloaded template member function with -gdwarf-2
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jonathan.sauer at gmx.de
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10558
  --> http://llvm.org/bugs/attachment.cgi?id=10558&action=edit
Complete log of clang run

The following C++1y program crashes clang r182233 during code generation when
being compiled with -gdwarf-2:

template <typename T>
struct Foo {
  static auto bar(int i) { return i; }
  static auto bar(long l) { return l; }
};


int main()
{
  Foo<bool>::bar(1);
}


This results in (full log attached):

% % ~/LLVM/build/Release+Asserts/bin/clang++ -std=c++1y -gdwarf-2 clang.cpp
Assertion failed: (!isNull() && "Cannot retrieve a NULL type pointer"),
function getCommonPtr, file
/Users/rynnsauer/LLVM/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Type.h,
line 547.
[...]
clang version 3.4 (trunk 182233)
Target: x86_64-apple-darwin10.8.0


The code compiles successfully without -gdwarf-2.

-- 
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/20130521/58090879/attachment.html>


More information about the llvm-bugs mailing list