[LLVMbugs] [Bug 18469] New: [powerpc-darwin8] test_alignment_of<bool, 1> fails

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 13 21:17:52 PST 2014


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

            Bug ID: 18469
           Summary: [powerpc-darwin8] test_alignment_of<bool, 1> fails
           Product: libc++
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: hhinnant at apple.com
          Reporter: fang at csl.cornell.edu
                CC: iains-llvm at btconnect.com, llvmbugs at cs.uiuc.edu,
                    rafael.espindola at gmail.com
    Classification: Unclassified

alignment_of.pass.cpp:20:5: error: static_assert failed ""
    static_assert( std::alignment_of<T>::value == A, "");
    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alignment_of.pass.cpp:41:5: note: in instantiation of function template
specialization 'test_alignment_of<bo
ol, 1>' requested here
    test_alignment_of<bool, 1>();
    ^
alignment_of.pass.cpp:21:5: error: static_assert failed ""
    static_assert( std::alignment_of<const T>::value == A, "");
    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alignment_of.pass.cpp:22:5: error: static_assert failed ""
    static_assert( std::alignment_of<volatile T>::value == A, "");
    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alignment_of.pass.cpp:23:5: error: static_assert failed ""
    static_assert( std::alignment_of<const volatile T>::value == A, "");
    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 errors generated.
test/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp failed to
compile
Compile line was: /Users/fang/local/src/LLVM-svn/gcc40-cmake-build/bin/clang++
-B/sw/lib/odcctools/bin -std=
c++11 -stdlib=libc++ -save-temps -no-integrated-as
-I/Users/fang/local/src/LLVM-svn/libcxx.git/test/support 
-I/Users/fang/local/src/LLVM-svn/libcxx.git/include
-L/Volumes/Isolde/sources/LLVM-svn/libcxx-supcxx-stage1-
build/lib alignment_of.pass.cpp

I suspect this is because of the data layout for the powerpc-darwin ABI.

-- 
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/20140114/bd16ba35/attachment.html>


More information about the llvm-bugs mailing list