[Bug c++/40075] deprecated("xxx") doesn't work on function parameter
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40075 --- Comment #5 from Andrew Pinski --- The original testcase in comment #0 starts to have the message in GCC 9+.
[Bug c++/40075] deprecated("xxx") doesn't work on function parameter
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40075 Andrew Pinski changed: What|Removed |Added CC||gcc at magfr dot user.lysator.liu. ||se --- Comment #4 from Andrew Pinski --- *** Bug 48266 has been marked as a duplicate of this bug. ***
[Bug c++/40075] deprecated(xxx) doesn't work on function parameter
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40075 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2013-09-05 CC|gcc-bugs at gcc dot gnu.org| Ever confirmed|0 |1 --- Comment #3 from Paolo Carlini paolo.carlini at oracle dot com --- Deprecated attributes applied via typedefs, like INT2, are weaker in other ways too: for example my fix for c++/58305 isn't enough for those.
[Bug c++/40075] deprecated(xxx) doesn't work on function parameter
--- Comment #2 from hjl dot tools at gmail dot com 2009-05-11 16:27 --- This patch: --- cp/decl.c.foo 2009-05-08 13:54:31.0 -0700 +++ cp/decl.c 2009-05-11 09:26:21.0 -0700 @@ -8065,6 +8065,9 @@ grokdeclarator (const cp_declarator *dec type = cp_build_qualified_type_real (type, type_quals, ((typedef_decl !DECL_ARTIFICIAL (typedef_decl) ? tf_ignore_bad_quals : 0) | tf_warning_or_error)); + /* FIXME: We need TYPE_STUB_DECL to get attributes on TYPE. */ + if (TYPE_STUB_DECL (type) == NULL_TREE) +TYPE_STUB_DECL (type) = typedef_decl; /* We might have ignored or rejected some of the qualifiers. */ type_quals = cp_type_quals (type); seems to work. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40075
[Bug c++/40075] deprecated(xxx) doesn't work on function parameter
--- Comment #1 from hjl dot tools at gmail dot com 2009-05-08 23:15 --- Another difference between C and C++: [...@gnu-6 tmp]$ cat bad.i typedef int INT2 __attribute__((deprecated)); int f5(INT2 x); int f6(INT2 x) __attribute__((deprecated)); [...@gnu-6 tmp]$ gcc -S bad.i bad.i:2: warning: INT2 is deprecated bad.i:3: warning: INT2 is deprecated [...@gnu-6 tmp]$ g++ -S bad.i bad.i:2: warning: INT2 is deprecated (declared at bad.i:1) [...@gnu-6 tmp]$ -- hjl dot tools at gmail dot com changed: What|Removed |Added CC||jason at redhat dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40075