[Bug c++/79078] Warnings from deprecated attribute are too noisy

2022-02-17 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 Jason Merrill changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #18

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2020-07-30 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 --- Comment #17 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #16) > struct string > { > #if __cplusplus == 201703L > [[deprecated("use shrink_to_fit() instead")]] > #elif __cplusplus > 201703L > private: > #endif > void

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2020-07-30 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 --- Comment #16 from Jonathan Wakely --- (In reply to Marek Polacek from comment #8) > One thing we should do is to > > --- a/gcc/cp/decl.c > +++ b/gcc/cp/decl.c > @@ -12643,7 +12643,7 @@ grokparms (tree parmlist, tree *parms) > if (deprec

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2018-06-25 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 Bug 79078 depends on bug 84222, which changed state. Bug 84222 Summary: [6/7 Regression] [[deprecated]] class complains about internal class usage https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84222 What|Removed

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2018-03-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 --- Comment #15 from Jonathan Wakely --- I think that would work well.

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2018-03-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 --- Comment #14 from Martin Sebor --- For non-member functions that are part of a class API I would like to see about getting the following to work for types (as it already does for functions): 1) define a class with no attribute 2) define the A

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2018-03-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 Jonathan Wakely changed: What|Removed |Added Last reconfirmed|2017-01-13 00:00:00 |2018-3-21 --- Comment #13 from Jonatha

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2017-08-24 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 Eric Gallager changed: What|Removed |Added CC||chrisb2244 at gmail dot com --- Comment

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2017-04-24 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 --- Comment #11 from Daniel Krügler --- (In reply to Jonathan Wakely from comment #10) > (In reply to Daniel Krügler from comment #9) > > PR 61754 seems to be related. > > I think for the examples here it makes no difference if you use > __attri

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2017-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 --- Comment #10 from Jonathan Wakely --- (In reply to Daniel Krügler from comment #9) > PR 61754 seems to be related. I think for the examples here it makes no difference if you use __attribute__((deprecated(""))) or [[deprecated("")]]

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2017-04-24 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2017-04-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2017-01-13 Thread egall at gwmail dot gwu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 Eric Gallager changed: What|Removed |Added CC||egall at gwmail dot gwu.edu --- Comment

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2017-01-13 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #6

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2017-01-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 --- Comment #5 from Jonathan Wakely --- Clang and EDG both procuce two warnings for this code, on the variable definition and the call to operator+ struct [[deprecated("D is bad mmmkay")]] D { void f(const D&); }; void D::f(const D&) { } [[d

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2017-01-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 --- Comment #4 from Jonathan Wakely --- Yet another heuristic would be to suppress warnings if the deprecated attributes have the same string literal in the attribute-argument-clause, i.e. treat the string as a grouping mechanism, so that entitie

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2017-01-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2017-01-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 --- Comment #2 from Jonathan Wakely --- Then we get _another_ warning on the definition of that member function: struct [[deprecated("D is bad mmmkay")]] D { void f(const D&); }; void D::f(const D&) { } d.cc:2:18: warning: ‘D’ is deprecated

[Bug c++/79078] Warnings from deprecated attribute are too noisy

2017-01-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078 --- Comment #1 from Jonathan Wakely --- This warns about the use of D within its own class body: struct [[deprecated("D is bad mmmkay")]] D { void f(const D&); }; d.cc:2:18: warning: ‘D’ is deprecated [-Wdeprecated-declarations] void f(con