public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/110471] New: d: Don't generate code that throws exceptions when compiling with `-fno-exceptions'
@ 2023-06-28 21:24 ibuclaw at gcc dot gnu.org
  2023-07-01 15:49 ` [Bug d/110471] " 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-06-28 21:24 UTC (permalink / raw)
  To: gcc-bugs

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

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

The predefined version conditions D_ModuleInfo, D_Exceptions, and D_TypeInfo
were added in r9-7112.  However individual feature flags do not turn off these
versions.

For example. this should succeed compilation.

// { dg-options "-fno-exceptions" }
version (D_Exceptions)
    static assert(false);  // expected to never trigger.

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

end of thread, other threads:[~2023-07-01 15:57 UTC | newest]

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