D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 11377 - if add -inline option. dmd source file in assertion failed.
Summary: if add -inline option. dmd source file in assertion failed.
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P2 normal
Assignee: No Owner
URL:
Keywords: ice
: 11419 (view as issue list)
Depends on:
Blocks:
 
Reported: 2013-10-29 04:37 UTC by ncaq
Modified: 2020-03-21 03:56 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ncaq 2013-10-29 04:37:00 UTC
dmd: glue.c:783: virtual void FuncDeclaration::toObjFile(int): Assertion `!vthis->csym' failed.
./build.sh: 5 行: 21429 中止                  dmd -wi -release -inline -O server.d modulecache.d actypes.d messages.d constants.d acvisitor.d autocomplete.d dscanner/stdx/d/ast.d dscanner/stdx/d/parser.d dscanner/stdx/d/lexer.d dscanner/stdx/d/entities.d dscanner/formatter.d msgpack-d/src/msgpack.d -Imsgpack-d/src -Idscanner/ -ofdcd-server

Overview:
Add -inline option.
After compile crash.
but,Succsess compile at use plain option.

Steps to Reproduce:

Attention.I unconcerned DCD project.

I can't good write english.
so I write example.

it's interactive shell script code.

Preparation

git clone https://github.com/Hackerpilot/DCD.git
cd DCD
git clone https://github.com/msgpack/msgpack-d.git
git clone https://github.com/Hackerpilot/Dscanner.git dscanner
dmd -wi client.d messages.d msgpack-d/src/msgpack.d -Imsgpack-d/src -ofdcd-client

Done preparation

dmd -wi -g server.d modulecache.d actypes.d messages.d constants.d acvisitor.d autocomplete.d dscanner/stdx/d/ast.d dscanner/stdx/d/parser.d dscanner/stdx/d/lexer.d dscanner/stdx/d/entities.d dscanner/formatter.d msgpack-d/src/msgpack.d -Imsgpack-d/src -Idscanner/ -ofdcd-server

ok.compile succsess.

dmd -wi -g -inline server.d modulecache.d actypes.d messages.d constants.d acvisitor.d autocomplete.d dscanner/stdx/d/ast.d dscanner/stdx/d/parser.d dscanner/stdx/d/lexer.d dscanner/stdx/d/entities.d dscanner/formatter.d msgpack-d/src/msgpack.d -Imsgpack-d/src -Idscanner/ -ofdcd-server

abort dmd !
error message.

dmd: glue.c:783: virtual void FuncDeclaration::toObjFile(int): Assertion `!vthis->csym' failed.
[1]    25072 abort      dmd -wi -g -inline server.d modulecache.d actypes.d messages.d constants.d

over.

Build Date & Platform:
DMD64 D Compiler v2.063.2
sunrise overlay ebuild package.

Additional Builds and Platforms:
Linux gentoo-z9-u3 3.11.6-gentoo #1 SMP Sun Oct 20 20:24:34 JST 2013 x86_64 Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz GenuineIntel GNU/Linux
Comment 1 safety0ff.bugz 2013-11-02 02:56:56 UTC
*** Issue 11419 has been marked as a duplicate of this issue. ***
Comment 2 Kenji Hara 2013-11-03 01:19:29 UTC
On Windows -m32, the issue reproduces with 2.063, but it does not occur with 2.064beta4.
Comment 3 basile-z 2019-02-28 17:44:16 UTC
This was for DCD so I'm fairly sure this is good now.