id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 7518,boost::optional bug with boost 1.50.0 and gcc 4.4.6,Boris Tschochner ,Fernando Cacciola,"Following code fails with optimization level -03 under gcc 4.4.6: This compiler is the default gcc with Redhat 6.3. What can I do? $ gcc -v gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) $ cat test.cpp #include #include int main() { boost::optional< int > tmp( 37 ); std::cout << *tmp << ""\n""; return 0; } $ g++ -O3 -Wall test.cpp test.cpp: In function âint main()â: test.cpp:7: warning: âtmpâ is used uninitialized in this function $ ./a.out 32767 ",Bugs,closed,To Be Determined,optional,Boost 1.50.0,Showstopper,duplicate,optional,gcc 4.4.6