| 1 | #include <boost/spirit/include/phoenix.hpp>
|
|---|
| 2 |
|
|---|
| 3 | /*
|
|---|
| 4 | File: bug.cpp
|
|---|
| 5 | BOOST_VERSION: 104800
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | /*
|
|---|
| 9 | $ g++ -I/opt/local/include -c -W bug.cpp -> OK
|
|---|
| 10 | $ g++ -I/opt/local/include -c -W -O0 bug.cpp -> OK
|
|---|
| 11 |
|
|---|
| 12 | $ g++ -I/opt/local/include -c -W -O1 bug.cpp
|
|---|
| 13 | In file included from /opt/local/include/boost/spirit/home/phoenix/statement.hpp:18,
|
|---|
| 14 | from /opt/local/include/boost/spirit/home/phoenix.hpp:19,
|
|---|
| 15 | from /opt/local/include/boost/spirit/include/phoenix.hpp:13,
|
|---|
| 16 | from bug.cpp:1:
|
|---|
| 17 | /opt/local/include/boost/fusion/container/vector/detail/preprocessed/vvector10.hpp: In function ‘void __static_initialization_and_destruction_0(int, int)’:
|
|---|
| 18 | /opt/local/include/boost/fusion/container/vector/detail/preprocessed/vvector10.hpp:36: warning: ‘<anonymous>.boost::fusion::vector<boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_>::vec’ is used uninitialized in this function
|
|---|
| 19 | /opt/local/include/boost/fusion/container/vector/detail/preprocessed/vvector10.hpp:119: note: ‘<anonymous>.boost::fusion::vector<boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_>::vec’ was declared here
|
|---|
| 20 |
|
|---|
| 21 | $ g++ -I/opt/local/include -c -W -O2 bug.cpp -> Same problem
|
|---|
| 22 |
|
|---|
| 23 | $ g++ --version
|
|---|
| 24 | i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
|
|---|
| 25 | Copyright (C) 2007 Free Software Foundation, Inc.
|
|---|
| 26 | This is free software; see the source for copying conditions. There is NO
|
|---|
| 27 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|---|
| 28 |
|
|---|
| 29 | */
|
|---|