public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/85468] Wrong location for -Wignored-qualifiers diagnostic on conversion operator
       [not found] <bug-85468-4@http.gcc.gnu.org/bugzilla/>
@ 2020-11-10 10:41 ` redi at gcc dot gnu.org
  2021-05-19  9:05 ` redi at gcc dot gnu.org
  2021-05-19  9:06 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2020-11-10 10:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85468

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-11-10
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I forgot to say that the test needs -Wignored-qualifiers (as shown in the
diagnostic).

Still present on trunk.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/85468] Wrong location for -Wignored-qualifiers diagnostic on conversion operator
       [not found] <bug-85468-4@http.gcc.gnu.org/bugzilla/>
  2020-11-10 10:41 ` [Bug c++/85468] Wrong location for -Wignored-qualifiers diagnostic on conversion operator redi at gcc dot gnu.org
@ 2021-05-19  9:05 ` redi at gcc dot gnu.org
  2021-05-19  9:06 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2021-05-19  9:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85468

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |brahim.pro at protonmail dot com

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
*** Bug 100668 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/85468] Wrong location for -Wignored-qualifiers diagnostic on conversion operator
       [not found] <bug-85468-4@http.gcc.gnu.org/bugzilla/>
  2020-11-10 10:41 ` [Bug c++/85468] Wrong location for -Wignored-qualifiers diagnostic on conversion operator redi at gcc dot gnu.org
  2021-05-19  9:05 ` redi at gcc dot gnu.org
@ 2021-05-19  9:06 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2021-05-19  9:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85468

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2020-11-10 00:00:00         |2021-05-19

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
>From Bug 100668:

const char* const f() {
    return nullptr;
}

char const* const f2() {
    return nullptr;
}

char* const f3() {
    return nullptr;
}



c.C:1:1: warning: type qualifiers ignored on function return type
[-Wignored-qualifiers]
    1 | const char* const f() {
      | ^~~~~
c.C:6:1: warning: type qualifiers ignored on function return type
[-Wignored-qualifiers]
    6 | char const* const f2() {
      | ^~~~
c.C:10:1: warning: type qualifiers ignored on function return type
[-Wignored-qualifiers]
   10 | char* const f3() {
      | ^~~~

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-19  9:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-85468-4@http.gcc.gnu.org/bugzilla/>
2020-11-10 10:41 ` [Bug c++/85468] Wrong location for -Wignored-qualifiers diagnostic on conversion operator redi at gcc dot gnu.org
2021-05-19  9:05 ` redi at gcc dot gnu.org
2021-05-19  9:06 ` 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).