]> git.ipfire.org Git - thirdparty/gcc.git/commit
d: Change in DotTemplateExp type semantics leading to regression (PR101619)
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 25 Jul 2021 17:54:08 +0000 (19:54 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Wed, 28 Jul 2021 11:13:04 +0000 (13:13 +0200)
commit3e2136117487fa839f7601c3e22a2856978fb9d0
tree0a96be35515f3aed36ecda3946949504be845423
parentea22954e7c580d1e54da4ac58301f65d5cf5f76a
d: Change in DotTemplateExp type semantics leading to regression (PR101619)

By giving dot templates a type, meant that properry resolving silently
started passing for code that should never have passed.  The simple fix
is to provide implementations for checkType and checkValue that give an
error about dot templates having neither a value nor type.

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

PR d/101619

gcc/d/ChangeLog:

* dmd/MERGE: Merge upstream dmd 1d8386a63.
13 files changed:
gcc/d/dmd/MERGE
gcc/d/dmd/expression.c
gcc/d/dmd/expression.h
gcc/testsuite/gdc.test/compilable/test22133.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/fail22133.d [new file with mode: 0644]
gcc/testsuite/gdc.test/fail_compilation/fail7424b.d
gcc/testsuite/gdc.test/fail_compilation/fail7424c.d
gcc/testsuite/gdc.test/fail_compilation/fail7424d.d
gcc/testsuite/gdc.test/fail_compilation/fail7424e.d
gcc/testsuite/gdc.test/fail_compilation/fail7424f.d
gcc/testsuite/gdc.test/fail_compilation/fail7424g.d
gcc/testsuite/gdc.test/fail_compilation/fail7424h.d
gcc/testsuite/gdc.test/fail_compilation/fail7424i.d