Bug 7782 – [ICE] With wrong import syntax

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-25T16:18:00Z
Last change time
2013-11-12T18:15:29Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2012-03-25T16:18:41Z
Wrong D2 code (it contains a simple typing mistake I have done, a dot instead of a comma): import std.algorithm, std.range. std.math; void main() { iota(10); } DMD 2.059head crashes and shows: Assertion failure: 'p->isPackage()' on line 1173 in file 'module.c'
Comment #1 by clugdbug — 2012-03-28T08:17:59Z
Comment #2 by github-bugzilla — 2012-03-28T17:15:32Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/2054d82275396ddc78e72767cb3982b9fe89c23d Merge pull request #844 from donc/regression7782 Fix issue 7782 Regression: ICE with wrong import syntax
Comment #3 by bearophile_hugs — 2013-11-05T02:52:45Z
I am seeing an ICE: import std.algorithm, std.range. std.math; void main() {} Dmd 2.064rc1 gives me: Assertion failure: 'pkg' on line 1120 in file 'module.c'
Comment #4 by k.hara.pg — 2013-11-11T18:10:14Z
(In reply to comment #3) > I am seeing an ICE: > > import std.algorithm, std.range. std.math; > void main() {} > > > Dmd 2.064rc1 gives me: > > Assertion failure: 'pkg' on line 1120 in file 'module.c' It's 2.064 regression. https://github.com/D-Programming-Language/dmd/pull/2743
Comment #5 by github-bugzilla — 2013-11-12T18:13:50Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/53744825512d0ae29b8c8c463eb69279187f7fdd fix Issue 7782 - [ICE] With wrong import syntax https://github.com/D-Programming-Language/dmd/commit/bf2224777b7ccd1a041f91dce09c6bf2d5a3b66a Merge pull request #2743 from 9rnsr/fix7782 [REG2.064] Issue 7782 - [ICE] With wrong import syntax
Comment #6 by github-bugzilla — 2013-11-12T18:15:09Z
Commit pushed to 2.064 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c56e5c109c76f18c95bac7ad8923404d3d968e86 Merge pull request #2743 from 9rnsr/fix7782 [REG2.064] Issue 7782 - [ICE] With wrong import syntax