Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-04-08 18:30:23


"Gennadiy Rozental" <gennadiy.rozental_at_[hidden]> writes:

> #include "boost/mpl/int.hpp"
>
> template<typename T>
> void foo( T const& t ) {}
>
> int main() {
> foo( boost::mpl::int_<1>::type::value );
>
> return 0;
> }

Just with Borland as far as I can tell. This passes gcc 2.95.3 and 3.2
and fails Borland 5.5.1, which is so bad I can't be very surprised.

myjam -sTOOLS="gcc gcc2 borland" test
...found 85 targets...
...updating 17 targets...
gcc-C++-action c:/build\bin\foo.test\gcc\debug\runtime-link-dynamic\foo.obj
gcc-Link-action c:/build\bin\foo.test\gcc\debug\runtime-link-dynamic\foo.exe
execute-test c:\build\bin\foo.test\gcc\debug\runtime-link-dynamic\foo.run
        1 file(s) copied.
**passed** c:/build\bin\foo.test\gcc\debug\runtime-link-dynamic\foo.test
gcc-C++-action c:/build\bin\foo.test\gcc2\debug\runtime-link-dynamic\foo.obj
gcc-Link-action c:/build\bin\foo.test\gcc2\debug\runtime-link-dynamic\foo.exe
execute-test c:\build\bin\foo.test\gcc2\debug\runtime-link-dynamic\foo.run
        1 file(s) copied.
**passed** c:/build\bin\foo.test\gcc2\debug\runtime-link-dynamic\foo.test
MkDir1 c:\build\bin\foo.test\borland
MkDir1 c:\build\bin\foo.test\borland\debug
MkDir1 c:\build\bin\foo.test\borland\debug\runtime-link-dynamic
borland-C++-action c:/build\bin\foo.test\borland\debug\runtime-link-dynamic\foo.obj
foo.cpp:
Warning W8057 foo.cpp 10: Parameter 't' is never used in function foo<int>(const int &)
borland-Link-action c:/build\bin\foo.test\borland\debug\runtime-link-dynamic\foo.exe
Fatal: Illegal EXTDEF fixup index in module 'foo.cpp'

    set PATH=c:\tools\borland\BCC55\bin\;%PATH%
    "c:\tools\borland\BCC55\bin\bcc32" -v -q -v -tWC -tWR -tWC -WM- -L"c:\tools\borland\BCC55\lib" -e"c:/build\bin\foo.test\borland\debug\runtime-link-dynamic\foo.exe" @"c:/build\bin\foo.test\borland\debug\runtime-link-dynamic\foo.CMD"

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk