Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4298 Constant array translated to unnecessary array literal creation
Uses rsinfu's patch, which works once the patch for bug 3779 is included. I also need to make a little change to CTFE, which can no longer assume that const variables have been expanded. This triggered one failure in Phobos -- but it was a bug: immutable int[1] x =[7]; void main(){ int [] y = x;} // passed, now correctly generates an error
- Loading branch information
Don Clugston
committed
Apr 14, 2011
1 parent
47d46bf
commit 7192ddf
Showing
2 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters