public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95337] New: duplicated deprecated attribute gives incorrectly duplicated diagnostic
@ 2020-05-26 15:46 nathan at gcc dot gnu.org
2020-05-27 12:38 ` [Bug c++/95337] " nathan at gcc dot gnu.org
2020-05-27 12:47 ` redi at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-05-26 15:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95337
Bug ID: 95337
Summary: duplicated deprecated attribute gives incorrectly
duplicated diagnostic
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: nathan at gcc dot gnu.org
Target Milestone: ---
Created attachment 48607
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48607&action=edit
yesterday, no, testcase. That's the word
If a declaration has two (different) deprecated attributes. We diagnose twice
(good), but use the same message both times (bad):
zathras:3>g++ -std=c++2a -c d.cc
d.cc: In function ‘void g()’:
d.cc:5:6: warning: ‘void f()’ is deprecated: dob [-Wdeprecated-declarations]
5 | f ();
| ^
d.cc:1:6: note: declared here
1 | void f [[deprecated("bob")]] [[deprecated("dob")]] ();
| ^
d.cc:5:6: warning: ‘void f()’ is deprecated: dob [-Wdeprecated-declarations]
5 | f ();
| ^
d.cc:1:6: note: declared here
1 | void f [[deprecated("bob")]] [[deprecated("dob")]] ();
| ^
check whether noignore has the same problem
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-27 12:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-26 15:46 [Bug c++/95337] New: duplicated deprecated attribute gives incorrectly duplicated diagnostic nathan at gcc dot gnu.org
2020-05-27 12:38 ` [Bug c++/95337] " nathan at gcc dot gnu.org
2020-05-27 12:47 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).