public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/108962] New: d: Don't generate code that throws exceptions when compiling with `-fno-exceptions'
@ 2023-02-28  6:06 ibuclaw at gcc dot gnu.org
  2023-07-02 13:54 ` [Bug d/108962] " cvs-commit at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ibuclaw at gcc dot gnu.org @ 2023-02-28  6:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108962
           Summary: d: Don't generate code that throws exceptions when
                    compiling with `-fno-exceptions'
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ibuclaw at gcc dot gnu.org
  Target Milestone: ---

There are a few constructs that implicitly raise an Error exception, for
example, `final switch`.

```
void main()
{
    final switch (0)
    {
        case 1:
            return;
    }
}
```

It might be more desirable to instead abort the runtime, optionally creating a
trace before exiting.

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

* [Bug d/108962] d: Don't generate code that throws exceptions when compiling with `-fno-exceptions'
  2023-02-28  6:06 [Bug d/108962] New: d: Don't generate code that throws exceptions when compiling with `-fno-exceptions' ibuclaw at gcc dot gnu.org
@ 2023-07-02 13:54 ` cvs-commit at gcc dot gnu.org
  2023-07-02 13:55 ` cvs-commit at gcc dot gnu.org
  2023-07-02 13:56 ` ibuclaw at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-07-02 13:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuclaw@gcc.gnu.org>:

https://gcc.gnu.org/g:2e06e39a12e5a79bdb72d3c146cc71292f875aed

commit r14-2237-g2e06e39a12e5a79bdb72d3c146cc71292f875aed
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Sun Jul 2 15:44:49 2023 +0200

    d: Add testcase from PR108962

    The issue was fixed in r14-2232.

            PR d/108962

    gcc/testsuite/ChangeLog:

            * gdc.dg/pr108962.d: New test.

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

* [Bug d/108962] d: Don't generate code that throws exceptions when compiling with `-fno-exceptions'
  2023-02-28  6:06 [Bug d/108962] New: d: Don't generate code that throws exceptions when compiling with `-fno-exceptions' ibuclaw at gcc dot gnu.org
  2023-07-02 13:54 ` [Bug d/108962] " cvs-commit at gcc dot gnu.org
@ 2023-07-02 13:55 ` cvs-commit at gcc dot gnu.org
  2023-07-02 13:56 ` ibuclaw at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-07-02 13:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Iain Buclaw
<ibuclaw@gcc.gnu.org>:

https://gcc.gnu.org/g:f614e6bace45552f2196c7d27bf5981c2f6dd8db

commit r13-7522-gf614e6bace45552f2196c7d27bf5981c2f6dd8db
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Sun Jul 2 15:44:49 2023 +0200

    d: Add testcase from PR108962

    The issue was fixed in r13-7518.

            PR d/108962

    gcc/testsuite/ChangeLog:

            * gdc.dg/pr108962.d: New test.

    (cherry picked from commit 2e06e39a12e5a79bdb72d3c146cc71292f875aed)

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

* [Bug d/108962] d: Don't generate code that throws exceptions when compiling with `-fno-exceptions'
  2023-02-28  6:06 [Bug d/108962] New: d: Don't generate code that throws exceptions when compiling with `-fno-exceptions' ibuclaw at gcc dot gnu.org
  2023-07-02 13:54 ` [Bug d/108962] " cvs-commit at gcc dot gnu.org
  2023-07-02 13:55 ` cvs-commit at gcc dot gnu.org
@ 2023-07-02 13:56 ` ibuclaw at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: ibuclaw at gcc dot gnu.org @ 2023-07-02 13:56 UTC (permalink / raw)
  To: gcc-bugs

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

ibuclaw at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #3 from ibuclaw at gcc dot gnu.org ---
Fixed by PR d/110471

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

end of thread, other threads:[~2023-07-02 13:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-28  6:06 [Bug d/108962] New: d: Don't generate code that throws exceptions when compiling with `-fno-exceptions' ibuclaw at gcc dot gnu.org
2023-07-02 13:54 ` [Bug d/108962] " cvs-commit at gcc dot gnu.org
2023-07-02 13:55 ` cvs-commit at gcc dot gnu.org
2023-07-02 13:56 ` ibuclaw 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).