[LLVMbugs] [Bug 20038] New: codegen crash regression r210961

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 13 21:34:40 PDT 2014


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

            Bug ID: 20038
           Summary: codegen crash regression r210961
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nlewycky at google.com
                CC: dblaikie at gmail.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

To reproduce:
$ clang -cc1 -emit-obj -O2 -std=gnu++11 -x c++ testcase.ii

Testcase:
template <typename, typename, typename> struct __sso_string_base;
template <template <typename, typename, typename> class = __sso_string_base>
struct __versa_string;
template <typename, typename, typename> struct __sso_string_base {
  template <typename _InputIterator>
  __sso_string_base(_InputIterator, _InputIterator, int);
  ~__sso_string_base();
};

template <template <typename, typename, typename> class _Base>
struct __versa_string : _Base<int, int, int> {
  __versa_string(int, int) : _Base<int, int, int>(0, 0, 0) {}
};
struct basic_string : __versa_string<> {
  basic_string(int = 0) : __versa_string(0, 0) {}
};

static int NamesMatch(basic_string);
struct S {
  char *S_name = GetName();
  S() { S_name && NamesMatch(0); }
  char *GetName();
  basic_string bs;
};

void test() {
  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/20140614/a3f5a8d4/attachment.html>


More information about the llvm-bugs mailing list