Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2001-04-17 15:15:40


The new version of CRC I just now downloaded from the vault may have set a
new record. At least I can't remember a single test program that caused
internal compiler errors from TWO of the Win32 compilers.

First try, Borland got an internal compiler error, Metrowerks compiled OK,
but the others failed. (See First try, below.)

I commented out "typename" at the indicated places, and tried again. Now
GCC joined Borland in the internal compiler error department. Metrowerks
continued to compile without error, while Microsoft reported errors (see
Second try, below)

It is really hard to deal with heavily templatized code that hasn't been
checked out by at least two compilers:-(

--Beman

First try:

** GCC under cygwin
g++ -c -ftemplate-depth-30 -Ic:/boost/site
c:/boost/site/libs/crc/crc_test.cpp
In file included from c:/boost/site/libs/crc/crc_test.cpp:28:
c:/boost/site/boost/crc.hpp:296: using `typename' outside of template
c:/boost/site/boost/crc.hpp:297: using `typename' outside of template
c:/boost/site/boost/crc.hpp:316: using `typename' outside of template
c:/boost/site/boost/crc.hpp:317: using `typename' outside of template
c:/boost/site/boost/crc.hpp:337: using `typename' outside of template
c:/boost/site/boost/crc.hpp:338: using `typename' outside of template
c:/boost/site/libs/crc/crc_test.cpp: In function `void timing_test(ostream
&)':
c:/boost/site/libs/crc/crc_test.cpp:153: using `typename' outside of
template
c:/boost/site/libs/crc/crc_test.cpp:154: confused by earlier errors,
bailing out>> a.out: crc_test.cpp:409: Assertion `0 == ran_crc_check'
failed.

Second try:

** Microsoft Visual C++
cl /c /nologo /Zm400 /MDd /W3 /GR /GX /Zi /Od /GZ /I"c:/boost/site" /D
"WIN32" /D "_DEBUG" /D "_MBCS" /D "_CONSOLE"
c:/boost/site/libs/crc/crc_test.cpp
crc_test.cpp
c:/boost/site/libs/crc/crc_test.cpp(153) : error C2440: 'initializing' :
cannot convert from '' to 'unsigned int (__cdecl *)(const void *,unsigned
int)'
         None of the functions with this name in scope match the target
type
c:/boost/site/libs/crc/crc_test.cpp(393) : error C2440: 'initializing' :
cannot convert from '' to 'unsigned int (__cdecl *)(const void *,unsigned
int)'
         None of the functions with this name in scope match the target
type
c:/boost/site/libs/crc/crc_test.cpp(395) : error C2440: 'initializing' :
cannot convert from '' to 'unsigned int (__cdecl *)(const void *,unsigned
int,unsigned int)'
         None of the functions with this name in scope match the target
type


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