Opened 9 years ago
Closed 6 years ago
#9113 closed Bugs (fixed)
Warning in visit_each with -Wshadow
Reported by: | Mathias Gaunard | Owned by: | Thomas Heller |
---|---|---|---|
Milestone: | To Be Determined | Component: | phoenix |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
/home/nt2/dev/boost/trunk/boost/phoenix/core/visit_each.hpp: In constructor ‘boost::phoenix::detail::visit_each_impl<Visitor>::visit_each_impl(Visitor&)’: /home/nt2/dev/boost/trunk/boost/phoenix/core/visit_each.hpp:25:48: warning: declaration of ‘visitor’ shadows a member of 'this' [-Wshadow]
Attachments (2)
Change History (14)
comment:1 by , 9 years ago
comment:3 by , 9 years ago
Not quite fixed, attached is a text file with several warnings about shadowing variables in Phoenix
by , 9 years ago
Attachment: | phoenix_shadow_warnings.txt added |
---|
follow-up: 6 comment:5 by , 9 years ago
I think I have now fixed all of these. Would you check please and let me know of any remaining? Thanks John
comment:6 by , 9 years ago
Replying to John Fletcher <J.P.Fletcher@…>:
I think I have now fixed all of these. Would you check please and let me know of any remaining? Thanks John
They will be on the develop branch shortly and into the next release (3.0.5).
comment:7 by , 9 years ago
I still get warnings with latest develop, db1f0eed551cd2693144e1ccd6ffc38f7fd5bae8
by , 9 years ago
Attachment: | shadow_warnings2.txt added |
---|
comment:8 by , 9 years ago
I think I have fixed those, including two sets of preprocessed files. Would you check again please? They are on develop. John
comment:9 by , 9 years ago
Only one left:
/home/nt2/dev/boost/boost/phoenix/bind/detail/member_function_ptr.hpp: In constructor ‘boost::phoenix::detail::member_function_ptr_impl<0>::impl<RT, FP>::impl(FP)’: /home/nt2/dev/boost/boost/phoenix/bind/detail/member_function_ptr.hpp:57:17: warning: declaration of ‘fp’ shadows a member of 'this' [-Wshadow]
Thanks for this
comment:10 by , 9 years ago
This one is now fixed on develop. I have some other things on test and will probably do another release to master, hopefully to get into the next Boost release. Thank you for your help. John
comment:12 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Other warnings in Phoenix of the same type:
and many others...