public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/111516] New: parameter passing note is not actionable
@ 2023-09-21 10:27 gonzalo.gadeschi at gmail dot com
  2023-09-21 14:43 ` [Bug c++/111516] " redi at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: gonzalo.gadeschi at gmail dot com @ 2023-09-21 10:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111516
           Summary: parameter passing note is not actionable
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gonzalo.gadeschi at gmail dot com
  Target Milestone: ---

I'm getting the following note (no reproducer yet), which as far as I can tell,
does not really tell me anything actionable and does not mention how to silence
it: 

```
/usr/include/c++/12/bits/stl_pair.h:741:5: note: parameter passing for argument
of type 'std::pair<double, double>' when C++17 is enabled changed to match
C++14 in GCC 10.1
  741 |     make_pair(_T1&& __x, _T2&& __y)
      |     ^~~~~~~~~
```


This note should at least be silenceable. 

It would be nice if the note message were to say something actionable, e.g.,
explain why this is a problem and what to do about it.

My interpretation of the note is that it is suggesting the developer to stop
using C++17 and to use C++14 instead. If this is not the intent, then it would
be great if the note could be clarified.

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

* [Bug c++/111516] parameter passing note is not actionable
  2023-09-21 10:27 [Bug c++/111516] New: parameter passing note is not actionable gonzalo.gadeschi at gmail dot com
@ 2023-09-21 14:43 ` redi at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2023-09-21 14:43 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
That's definitely not what it's suggesting. It's telling you that the ABI for
c++17 code in gcc 10 does not match the ABI for c++17 code in gcc 9. It's a
statement of fact, it's not suggesting that you do anything. I agree that it
isn't necessarily useful, because you might not care about the ABI of c++17
code in gcc 9.

Have you tried -Wno-psabi ?

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

end of thread, other threads:[~2023-09-21 14:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-21 10:27 [Bug c++/111516] New: parameter passing note is not actionable gonzalo.gadeschi at gmail dot com
2023-09-21 14:43 ` [Bug c++/111516] " 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).