Opened 11 years ago

Closed 5 years ago

#6247 closed Bugs (obsolete)

Warning from boost/spirit/include/phoenix.hpp with g++ -c -W at -O1 and higher

Reported by: tom.arbuckle@… Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost 1.48.0 Severity: Problem
Keywords: Cc:

Description

Compiling boost/spirit/include/phoenix.hpp with gcc -c -W produces a warning ("used uninitialized") at optimization levels of -O1 and higher. Without compiler optimization, i.e. -O0 or optimization flag omitted, no warning seen.

Problem seen in boost 1.47 and boost 1.48.

Attachments (1)

bug.cpp (1.8 KB ) - added by tom.arbuckle@… 11 years ago.
Sample code with problem output shown in comments.

Download all attachments as: .zip

Change History (5)

by tom.arbuckle@…, 11 years ago

Attachment: bug.cpp added

Sample code with problem output shown in comments.

comment:1 by anonymous, 11 years ago

Summary: Warning from boost/spirit/include/phoenix.hpp with gcc -c -W at -O1 and higherWarning from boost/spirit/include/phoenix.hpp with g++ -c -W at -O1 and higher

comment:2 by anonymous, 9 years ago

I can confirm this issue on Boost 1.53. Btw: It was not there when using Boost 1.52

comment:3 by Nikita Kniazev <nok.raven@…>, 5 years ago

I am not sure if it was Phoenix of Fusion problem, but it rather fixed or gone as Phoenix V2 is no longer here since ​https://github.com/boostorg/spirit/commit/c0537c8251d04773a24bafdab8363b1cba350d07.

comment:4 by Joel de Guzman, 5 years ago

Resolution: obsolete
Status: newclosed
Note: See TracTickets for help on using tickets.