re PR d/90651 (ICE in FuncDeclaration::semantic3, at d/dmd/func.c:1524)
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 16 Jun 2019 07:49:06 +0000 (07:49 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Sun, 16 Jun 2019 07:49:06 +0000 (07:49 +0000)
commit88ad43b1f91f7cd2ba9c342c6c1a6da82e6088bf
tree57131c9c2449ea596790736ae8ad297416d7e1b9
parenta1543fb19ba17a455b0e9df5e373a1643082f5d2
re PR d/90651 (ICE in FuncDeclaration::semantic3, at d/dmd/func.c:1524)

PR d/90651
d/dmd: Merge upstream dmd 0f6cbbcad

Fixes segmentation fault in FuncDeclaration::semantic3.

Reviewed-on: https://github.com/dlang/dmd/pull/10003

gcc/d/ChangeLog:

2019-06-16  Iain Buclaw  <ibuclaw@gdcproject.org>

* 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.

From-SVN: r272345
12 files changed:
gcc/d/ChangeLog
gcc/d/dmd/MERGE
gcc/d/dmd/expressionsem.c
gcc/d/dmd/func.c
gcc/d/dmd/mtype.c
gcc/d/typeinfo.cc
gcc/testsuite/gdc.test/fail_compilation/extra-files/minimal/object.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/fail19911a.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/fail19911b.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/fail19911c.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/fail19922.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/fail19923.d [new file with mode: 0644]