[llvm-bugs] [Bug 32567] New: [UBSan/Win] insufficient space for an object of type

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 7 10:26:19 PDT 2017


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

            Bug ID: 32567
           Summary: [UBSan/Win] insufficient space for an object of type
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mikhail.strelnikov at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

template <typename>
struct a
{
    a()
    {
    }
};

template <typename... X>
struct b : a<X>...
{
};

int main()
{
    b<a<int>, a<char>> c;
}

"clang++.exe" test.cpp -O2 -fsanitize=undefined
   Creating library a.lib and object a.exp

a.exe
(a.EXE+0x140001014): runtime error: constructor call on address 0x00c38d79fab1
with insufficient space for an object of type 'a<a<char> >'
0x00c38d79fab1: note: pointer points here
 7f 00 00  00 00 00 00 00 00 00 00  e5 38 90 25 f6 7f 00 00  00 00 00 00 00 00
00 00  00 00 00 00 00
              ^

-- 
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/20170407/0d924b75/attachment.html>


More information about the llvm-bugs mailing list