This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Error in stl_bvector.h and vector.tcc
- From: Hillel (Sabba) Markowitz <sabba dot hillel at verizon dot net>
- To: <pcarlini at suse dot de>
- Cc: <gdr at acm dot org>,<gcc at gcc dot gnu dot org>
- Date: Wed, 9 Jun 2004 13:14:35 -0400
- Subject: Re: Error in stl_bvector.h and vector.tcc
- Reply-to: Sabba dot Hillel at verizon dot net
The following code causes gcc-3.4.0 to find a compile error in stl_bvector.h and vector.tcc
#include <fstream>
#ifdef __cplusplus
extern "C"
{
#ifndef max
#define max(x,y) ( ((x) > (y)) ? (x) : (y) )
#endif
#ifndef min
#define min(x,y) ( ((x) < (y)) ? (x) : (y) )
#endif
#ifdef __cplusplus
}
#endif
#include <vector>
using namespace std;
int main(int argc, char **argv)
{
}
If the vector line is moved before the max, min definitions, the error does not occur. if the fstream include is removed, the error does not occur.
--
Said the fox to the fish, "Join me ashore."
The fish are the Jews, Torah is our water!
Hillel (Sabba) Markowitz
Sabba.Hillel@verizon.net, sabbahem@bcpl.net