[llvm-bugs] [Bug 36223] New: class member address inconsistency @ -fvisibility-ms-compat.

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Feb 3 14:44:24 PST 2018


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

            Bug ID: 36223
           Summary: class member address inconsistency @
                    -fvisibility-ms-compat.
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pawel_sikora at zoho.com
                CC: llvm-bugs at lists.llvm.org

as you can see the &u at bar differs between ctor/test for clang. looks like a
bug.

% ./build-gcc && ./m  
&foo
ST::ctor(this = 0x1a0a280, &u = 0x7ffb6911c038)
ST::test(this = 0x1a0a280, &u = 0x7ffb6911c038)
&bar
ST::ctor(this = 0x1a0a2a0, &u = 0x7ffb69119038)
ST::test(this = 0x1a0a2a0, &u = 0x7ffb69119038)

% ./build-clang && ./m
&foo
ST::ctor(this = 0x11bd280, &u = 0x7f6d980f0020)
ST::test(this = 0x11bd280, &u = 0x7f6d980f0020)
&bar
ST::ctor(this = 0x11bd2a0, &u = 0x7f6d980ed020)
ST::test(this = 0x11bd2a0, &u = 0x7f6d980f0020)

tested @ fedora-27 with system-wide compilers:

% rpm -q gcc clang
gcc-7.2.1-2.fc27.x86_64
clang-5.0.1-1.fc27.x86_64

-- 
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/20180203/727f3c3f/attachment.html>


More information about the llvm-bugs mailing list