diff options
author | Iain Buclaw <ibuclaw@gcc.gnu.org> | 2019-06-16 07:48:23 +0000 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gcc.gnu.org> | 2019-06-16 07:48:23 +0000 |
commit | e7c6715ec82458cf0b9a362bf9b068d0574607f9 (patch) | |
tree | d8473be2cfc157fafdab06c9ebb73c750502a282 /gcc/testsuite/gdc.test | |
parent | 22682e5b5f7cc596b165534ad9b8f201354126ce (diff) | |
download | gcc-e7c6715ec82458cf0b9a362bf9b068d0574607f9.zip gcc-e7c6715ec82458cf0b9a362bf9b068d0574607f9.tar.gz gcc-e7c6715ec82458cf0b9a362bf9b068d0574607f9.tar.bz2 |
re PR d/90602 (ICE: null field)
PR d/90602
d/dmd: Merge upstream dmd 420cce2a6
Fixes internal compiler error during CTFE.
Reviewed-on: https://github.com/dlang/dmd/pull/9997
From-SVN: r272342
Diffstat (limited to 'gcc/testsuite/gdc.test')
-rw-r--r-- | gcc/testsuite/gdc.test/fail_compilation/fail19897.d | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gdc.test/fail_compilation/fail19897.d b/gcc/testsuite/gdc.test/fail_compilation/fail19897.d new file mode 100644 index 0000000..8dd4e14 --- /dev/null +++ b/gcc/testsuite/gdc.test/fail_compilation/fail19897.d @@ -0,0 +1,13 @@ +// PERMUTE_ARGS: +/* +TEST_OUTPUT +--- +fail_compilation/fail19897.d(10): Error: cannot implicitly convert expression `[]` of type `const(char[0])` to `const(char)` +--- +*/ +struct S +{ + char[0] x; +} +const a = S('a'); +const char c = a.x; |