Coder Social home page Coder Social logo

Comments (5)

pdimov avatar pdimov commented on July 18, 2024

msvc-11.0 failure edited out, was a local issue.

from type_traits.

jzmaddock avatar jzmaddock commented on July 18, 2024

from type_traits.

pdimov avatar pdimov commented on July 18, 2024

Odd.

C:\Projects\boost-git\boost\libs\type_traits>g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/6.3.0/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: /cygdrive/i/szsz/tmpp/gcc/gcc-6.3.0-2.i686/src/gcc-6.3.0/config
ure --srcdir=/cygdrive/i/szsz/tmpp/gcc/gcc-6.3.0-2.i686/src/gcc-6.3.0 --prefix=/
usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc --docdir=/usr/shar
e/doc/gcc --htmldir=/usr/share/doc/gcc/html -C --build=i686-pc-cygwin --host=i68
6-pc-cygwin --target=i686-pc-cygwin --without-libiconv-prefix --without-libintl-
prefix --libexecdir=/usr/lib --enable-shared --enable-shared-libgcc --enable-sta
tic --enable-version-specific-runtime-libs --enable-bootstrap --enable-__cxa_ate
xit --with-dwarf2 --with-arch=i686 --with-tune=generic --disable-sjlj-exceptions
 --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-graphite --enabl
e-threads=posix --enable-libatomic --enable-libcilkrts --enable-libgomp --enable
-libitm --enable-libquadmath --enable-libquadmath-support --enable-libssp --enab
le-libada --disable-symvers --with-gnu-ld --with-gnu-as --with-cloog-include=/us
r/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-sy
stem-zlib --enable-linker-build-id --with-default-libstdcxx-abi=gcc4-compatible
Thread model: posix
gcc version 6.3.0 (GCC)
C:\Projects\boost-git\boost\libs\type_traits>b2 test//alignment_of_test toolset=
gcc-cxx03
Performing configuration checks

    - 32-bit                   : yes (cached)
    - arm                      : no  (cached)
    - mips1                    : no  (cached)
    - power                    : no  (cached)
    - sparc                    : no  (cached)
    - x86                      : yes (cached)
    - symlinks supported       : no  (cached)
    - junctions supported      : yes (cached)
    - hardlinks supported      : yes (cached)
...patience...
...found 803 targets...
...updating 2 targets...
testing.capture-output ..\..\bin.v2\libs\type_traits\test\alignment_of_test.test
\gcc-cxx03-6.3.0\debug\alignment_of_test.run
====== BEGIN OUTPUT ======
test\alignment_of_test.cpp:90: The expression: "::boost::alignment_of<double>::v
alue" had an invalid value (found 8, expected 4)
test\alignment_of_test.cpp:93: The expression: "::boost::alignment_of< ::boost::
long_long_type>::value" had an invalid value (found 8, expected 4)

EXIT STATUS: 2
====== END OUTPUT ======

from type_traits.

pdimov avatar pdimov commented on July 18, 2024

Mystery solved, I use -std=c++03 and you use -std=gnu++03. The latter works, the former fails as above.

from type_traits.

jzmaddock avatar jzmaddock commented on July 18, 2024

Nope, just looked at this again with both 64 and 32 bit versions of mingw 6.3 and 7.2 and still can't reproduce :(

I do dimly remember that GCC's __alignof__ sometimes lies. So I think the thing for you to do is file a PR against intrinsics.hpp so that we don't use the intrinsic for the cases which don't work?

from type_traits.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.