[Bug c++/68669] [5 regression] -Wunused-variable in anonymous namespace is not correctly supressed by #pragmas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68669 Jakub Jelinek changed: What|Removed |Added Target Milestone|5.5 |6.0
[Bug c++/68669] [5 regression] -Wunused-variable in anonymous namespace is not correctly supressed by #pragmas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68669 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED CC||jakub at gcc dot gnu.org Resolution|--- |FIXED --- Comment #13 from Jakub Jelinek --- GCC 5 branch has been closed, should be fixed in GCC 6 and later.
[Bug c++/68669] [5 regression] -Wunused-variable in anonymous namespace is not correctly supressed by #pragmas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68669 Richard Biener changed: What|Removed |Added Target Milestone|5.4 |5.5 --- Comment #12 from Richard Biener --- GCC 5.4 is being released, adjusting target milestone.
[Bug c++/68669] [5 regression] -Wunused-variable in anonymous namespace is not correctly supressed by #pragmas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68669 Richard Biener changed: What|Removed |Added Priority|P3 |P2
[Bug c++/68669] [5 regression] -Wunused-variable in anonymous namespace is not correctly supressed by #pragmas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68669 Richard Biener changed: What|Removed |Added Target Milestone|--- |5.4
[Bug c++/68669] [5 regression] -Wunused-variable in anonymous namespace is not correctly supressed by #pragmas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68669 --- Comment #8 from Manuel López-Ibáñez --- (In reply to Markus Trippelsdorf from comment #7) > (In reply to Manuel López-Ibáñez from comment #6) > > Perhaps you need to try with -Wunused-const-variable ? There may be some > > problem with TREE_READONLY (decl). > > There is no -Wunused-const-variable in gcc-5. I mean to trigger the bug (or check the correct behavior) with gcc 6.
[Bug c++/68669] [5 regression] -Wunused-variable in anonymous namespace is not correctly supressed by #pragmas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68669 --- Comment #9 from Markus Trippelsdorf --- Well, why don't you answer these questions yourself?
[Bug c++/68669] [5 regression] -Wunused-variable in anonymous namespace is not correctly supressed by #pragmas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68669 Manuel López-Ibáñez changed: What|Removed |Added CC|manu at gcc dot gnu.org| --- Comment #10 from Manuel López-Ibáñez --- (In reply to Markus Trippelsdorf from comment #9) > Well, why don't you answer these questions yourself? Because I don't have latest trunk build and ready. If you don't want to answer them, that is ok. Maybe somebody else will, maybe they are not important after all. I'm just pointing out things that may help to identify and fix the bug. That was all.
[Bug c++/68669] [5 regression] -Wunused-variable in anonymous namespace is not correctly supressed by #pragmas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68669 Manuel López-Ibáñez changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Comment #5 from Manuel López-Ibáñez --- (In reply to Markus Trippelsdorf from comment #3) > gcc-6 doesn't warn at all (even without the "diagnostic ignored" pragma). Even with an explicit -Wunused-variable? Does the warning call in the gcc-5 branch contain %q+D? Does it work correctly if you change it to %qD?
[Bug c++/68669] [5 regression] -Wunused-variable in anonymous namespace is not correctly supressed by #pragmas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68669 Manuel López-Ibáñez changed: What|Removed |Added Keywords||diagnostic --- Comment #6 from Manuel López-Ibáñez --- Perhaps you need to try with -Wunused-const-variable ? There may be some problem with TREE_READONLY (decl).
[Bug c++/68669] [5 regression] -Wunused-variable in anonymous namespace is not correctly supressed by #pragmas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68669 --- Comment #7 from Markus Trippelsdorf --- (In reply to Manuel López-Ibáñez from comment #6) > Perhaps you need to try with -Wunused-const-variable ? There may be some > problem with TREE_READONLY (decl). There is no -Wunused-const-variable in gcc-5.
[Bug c++/68669] [5 regression] -Wunused-variable in anonymous namespace is not correctly supressed by #pragmas
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68669 --- Comment #11 from Jan Hubicka --- The commit implements removal of stores to write only variables. I suppose that makes them unused. This could trigger more warnings though of course they should honnor -Wno-unused Honza