public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/101657] New: d: di header file created even if errors occur
@ 2021-07-28 14:39 ibuclaw at gdcproject dot org
  2021-07-29 15:12 ` [Bug d/101657] " cvs-commit at gcc dot gnu.org
  2021-07-29 15:26 ` ibuclaw at gdcproject dot org
  0 siblings, 2 replies; 3+ messages in thread
From: ibuclaw at gdcproject dot org @ 2021-07-28 14:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101657
           Summary: d: di header file created even if errors occur
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ibuclaw at gdcproject dot org
  Target Milestone: ---

The correct behaviour would be to remove the .di file if an error occurred
during compilation.
---
module test;
import std.foo;  // force error

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

* [Bug d/101657] d: di header file created even if errors occur
  2021-07-28 14:39 [Bug d/101657] New: d: di header file created even if errors occur ibuclaw at gdcproject dot org
@ 2021-07-29 15:12 ` cvs-commit at gcc dot gnu.org
  2021-07-29 15:26 ` ibuclaw at gdcproject dot org
  1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-07-29 15:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- 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:75f2e3f6cbbb79421b12e399498e9c14241359e7

commit r12-2596-g75f2e3f6cbbb79421b12e399498e9c14241359e7
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Mon Jul 26 17:24:38 2021 +0200

    d: Remove generated D header files on error (PR101657)

    If an error occurs later during compilation, remember that we generated
    the headers, so that they can be removed before exit.

            PR d/101657

    gcc/d/ChangeLog:

            * d-lang.cc (d_parse_file): Remove generated D header files on
error.

    gcc/testsuite/ChangeLog:

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

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

* [Bug d/101657] d: di header file created even if errors occur
  2021-07-28 14:39 [Bug d/101657] New: d: di header file created even if errors occur ibuclaw at gdcproject dot org
  2021-07-29 15:12 ` [Bug d/101657] " cvs-commit at gcc dot gnu.org
@ 2021-07-29 15:26 ` ibuclaw at gdcproject dot org
  1 sibling, 0 replies; 3+ messages in thread
From: ibuclaw at gdcproject dot org @ 2021-07-29 15:26 UTC (permalink / raw)
  To: gcc-bugs

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

Iain Buclaw <ibuclaw at gdcproject dot org> changed:

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

--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Fix committed.

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

end of thread, other threads:[~2021-07-29 15:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-28 14:39 [Bug d/101657] New: d: di header file created even if errors occur ibuclaw at gdcproject dot org
2021-07-29 15:12 ` [Bug d/101657] " cvs-commit at gcc dot gnu.org
2021-07-29 15:26 ` ibuclaw at gdcproject dot 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).