$Id: bugs.omh 2506 2012-10-24 19:36:49Z bradbell $
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell

CppAD is distributed under multiple licenses. This distribution is under
the terms of the 
                    Eclipse Public License Version 1.0.

A copy of this license is included in the COPYING file of this distribution.
Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
-------------------------------------------------------------------------- */

$begin Bugs$$
$spell
	adolc
	uninitialized
	stl
	usr
	Dir
	CppAD
	Gcc
	Cygwin
	std
$$

$section Know Bugs and Problems Using CppAD$$
$index bugs, using CppAD$$
$index problem, using CppAD$$



$head gcc 3.4.4 -O2$$
$index gcc 3.4.4, bug$$
$index bug, gcc 3.4.4$$
There appears to be a problem with gcc version 3.4.4 
under Cygwin using the compiler option $code -O2$$.

$subhead Example$$
If you are running gcc 3.4.4, try using the 
$cref/configure/installUnix/Configure/$$ option
$codep
	CPP_ERROR_WARN="-O2 -Wall -ansi -pedantic-errors -std=c++98"
$$
If the $code -O2$$ compiler option is a problem for your compiler,
you will get warnings that do not make sense when executing the 
$code make$$ command in the $code Example$$ sub-directory.
In addition, the $code example/Example$$ program will generate a
segmentation fault.

$subhead Adolc$$
If you are running gcc 3.4.4, try using the
$cref/configure/installUnix/Configure/$$ options
$codei%
	./configure \
		ADOLC_DIR=%adolc_dir% \
		CPP_ERROR_WARN="-Wall" \
		BOOST_DIR=%boost_dir%
%$$
the following warning occurs during the $code make$$ command: 
$codep
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/stl_uninitialized.h:82: 
warning: '__cur' might be used uninitialized in this function
$$
This appears to be the same problem discussed in 
$pre
	$$
$href%http://www.cygwin.com/ml/cygwin-apps/2005-06/msg00159.html%$$
$pre
$$
and its follow up messages.


$end
