[llvm-bugs] [Bug 41607] New: crash on dependent variable initialization in in-class explicit specialization of member class template

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 25 18:55:07 PDT 2019


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

            Bug ID: 41607
           Summary: crash on dependent variable initialization in in-class
                    explicit specialization of member class template
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Testcase:

template<int N> struct pm {
  template<int...> struct mi;
  template<> struct mi<> {
    mi() { N; }
  };
};
pm<0>::mi<> m;

... crashes in IR generation. An -ast-dump shows that we have not substituted
the template arguments of the enclosing template into the body of
pm<0>::mi<>::mi().

-- 
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/20190426/9a5cc112/attachment.html>


More information about the llvm-bugs mailing list