IDE:VC++6.0
Run-time lib:Debug Multi-threaded DLL
The following is two code segment.The first is with ICEs and the second is without ICEs.
Example1:(With Internal Compiler Error)
#include <iostream>
#include <string>
#include
<boost\dynamic_bitset.hpp>
using std::cout;
using std::endl;
boost::dynamic_bitset<char> g_bs;//!!!!!!!!!!!!!!!!!!!!!!!!Here
void
SetBitSet(const std::string &
str)
{
boost::dynamic_bitset<char>
bs(str);
// g_bs = bs;
}
int main()
{
return 0;
}
Example 2:(Without Internal Compiler Error)
#include <iostream>
#include <string>
#include
<boost\dynamic_bitset.hpp>
using std::cout;
using std::endl;
//boost::dynamic_bitset<char> g_bs;//!!!!!!!!!!!!!!!!Here
void SetBitSet(const std::string &
str)
{
boost::dynamic_bitset<char>
bs(str);
// g_bs = bs;
}
int main()
{
return 0;
}