7782 – [ICE] With wrong import syntax

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7782 - [ICE] With wrong import syntax
Summary: [ICE] With wrong import syntax
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 regression
Assignee: No Owner
URL:
Keywords: diagnostic, pull
Depends on:
Blocks:
Reported: 2012年03月25日 16:18 UTC by bearophile_hugs
Modified: 2013年11月12日 18:15 UTC (History)
2 users (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2012年03月25日 16:18:41 UTC
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 Don 2012年03月28日 08:17:59 UTC
And it's a regression. My fault.
https://github.com/D-Programming-Language/dmd/pull/844 
Comment 2 github-bugzilla 2012年03月28日 17:15:32 UTC
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 bearophile_hugs 2013年11月05日 02:52:45 UTC
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 Kenji Hara 2013年11月11日 18:10:14 UTC
(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 github-bugzilla 2013年11月12日 18:13:50 UTC
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 github-bugzilla 2013年11月12日 18:15:09 UTC
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


AltStyle によって変換されたページ (->オリジナル) /