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
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078
--- Comment #15 from Jonathan Wakely ---
I think that would work well.
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078
Eric Gallager changed:
What|Removed |Added
CC||chrisb2244 at gmail dot com
--- Comment
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
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("")]]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078
Daniel Krügler changed:
What|Removed |Added
CC||daniel.kruegler@googlemail.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078
Eric Gallager changed:
What|Removed |Added
CC||egall at gwmail dot gwu.edu
--- Comment
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
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
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
19 matches
Mail list logo