public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/107792] New: Output of default contract violation handler could be improved
@ 2022-11-21 11:43 redi at gcc dot gnu.org
  2022-11-21 13:40 ` [Bug libstdc++/107792] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2022-11-21 11:43 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107792
           Summary: Output of default contract violation handler could be
                    improved
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

int f(int x) [[pre: x > 0]] [[post r: r > 0]]
{
  return -5;
}

int main()
{
  f(42);
}


default std::handle_contract_violation called: 
 fail.cc 1 f r > 0 default default 0
terminate called without an active exception
Aborted (core dumped)


We should label the fields so that "fail.cc 1 f r > 0 default default 0" makes
sense.

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

end of thread, other threads:[~2023-01-25 13:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-21 11:43 [Bug libstdc++/107792] New: Output of default contract violation handler could be improved redi at gcc dot gnu.org
2022-11-21 13:40 ` [Bug libstdc++/107792] " redi at gcc dot gnu.org
2022-11-21 17:30 ` pinskia at gcc dot gnu.org
2022-11-21 17:32 ` redi at gcc dot gnu.org
2022-12-23  0:51 ` cvs-commit at gcc dot gnu.org
2023-01-25 13:29 ` 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).