Issue 14621 - [REG2.066] ICE: Assertion failure: 'global.gaggedErrors || global.errors' on line 752 in file 'statement.c'
Summary: [REG2.066] ICE: Assertion failure: 'global.gaggedErrors || global.errors' on ...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords: ice, pull
Depends on:
Blocks:
 
Reported: 2015-05-26 14:33 UTC by Rene Zwanenburg
Modified: 2015-08-29 09:32 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Rene Zwanenburg 2015-05-26 14:33:49 UTC
Reduced code:

void main()
{
	S s;
	s.foo();
}

struct S
{
	float[] array;
	alias array this;
	
	template erroneousTemplateInstantiation()
	{
		static assert(false);
	}
	
	void foo()
	{
		S ret;
		ret[] = erroneousTemplateInstantiation!();
	}
}
Comment 1 Vladimir Panteleev 2015-05-26 14:47:00 UTC
Introduced in https://github.com/D-Programming-Language/dmd/pull/443
Comment 3 Martin Nowak 2015-07-21 11:57:25 UTC
First release affected was 2.066.0.
Comment 4 github-bugzilla 2015-08-29 07:40:28 UTC
Commits pushed to stable at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/6fcef51018ab366fb8fd7ec011597e08bb65f9ec
fix Issue 14621 - ICE: Assertion failure: 'global.gaggedErrors || global.errors' on line 752 in file 'statement.c'

https://github.com/D-Programming-Language/dmd/commit/d99699301eb0f5d46b4f9240236ca7c1694bb39b
Merge pull request #4948 from 9rnsr/fix14621

Issue 14621, 14624, 14625 - Fix bugs in array operator overloading semantics
Comment 5 github-bugzilla 2015-08-29 09:32:44 UTC
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/6fcef51018ab366fb8fd7ec011597e08bb65f9ec
fix Issue 14621 - ICE: Assertion failure: 'global.gaggedErrors || global.errors' on line 752 in file 'statement.c'

https://github.com/D-Programming-Language/dmd/commit/d99699301eb0f5d46b4f9240236ca7c1694bb39b
Merge pull request #4948 from 9rnsr/fix14621