public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/90651] ICE in FuncDeclaration::semantic3, at d/dmd/func.c:1524
       [not found] <bug-90651-4@http.gcc.gnu.org/bugzilla/>
@ 2021-06-10 17:56 ` cvs-commit at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: cvs-commit at gcc dot gnu.org @ 2021-06-10 17:56 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

commit r9-9578-gdcde4afec2a25a5fa69d1e5eec022768340fa1ab
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Thu Jun 10 19:48:49 2021 +0200

    PR d/90651 (ICE in FuncDeclaration::semantic3, at d/dmd/func.c:1524)

    Fixes segmentation fault in FuncDeclaration::semantic3.

    gcc/d/ChangeLog:

            PR d/90651
            * dmd/expressionsem.c (ExpressionSemanticVisitor::visit
(TypeidExp)):
            Error when TypeInfo doesn't exist.
            * dmd/func.c (FuncDeclaration::semantic3): Likewise.
            * dmd/mtype.c (TypeClass::dotExp): Likewise.
            * typeinfo.cc (object_module): New variable.
            (make_frontend_typeinfo): Update signature.  Set temporary on
            generated TypeInfo classes.
            (create_tinfo_types): Set object_module.  Move generation of
front-end
            typeinfo into ...
            (create_frontend_tinfo_types): ... New function.
            (layout_typeinfo): Call create_frontend_tinfo_types.
            (layout_classinfo): Likewise.
            (layout_cpp_typeinfo): Likewise.
            (create_typeinfo): Likewise.

    gcc/testsuite/ChangeLog:

            PR d/90651
            * gdc.test/fail_compilation/extra-files/minimal/object.d: New file.
            * gdc.test/fail_compilation/fail19911a.d: New test.
            * gdc.test/fail_compilation/fail19911b.d: New test.
            * gdc.test/fail_compilation/fail19911c.d: New test.
            * gdc.test/fail_compilation/fail19922.d: New test.
            * gdc.test/fail_compilation/fail19923.d: New test.

    (cherry picked from commit 88ad43b1f91f7cd2ba9c342c6c1a6da82e6088bf)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-10 17:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-90651-4@http.gcc.gnu.org/bugzilla/>
2021-06-10 17:56 ` [Bug d/90651] ICE in FuncDeclaration::semantic3, at d/dmd/func.c:1524 cvs-commit 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).