Issue 3091 & 6873 - Make "StorageClasses Type" syntax available in some where #556

Merged
merged 2 commits into from Sep 25, 2012

Conversation

Projects
None yet
4 participants
Member

9rnsr commented Dec 12, 2011

Issue 3091 - "auto x = new shared foo" does not compile
Issue 6873 - Multiple storage class is not allowed on template argument

Note: 3091 is marked as enhancement, and I think it is worth to fix.

Member

9rnsr commented Dec 13, 2011

Moved a commit for 6873 from #486.

+ case TOKconst: stc |= STCconst; break;
+ case TOKinvariant:
+ if (!global.params.useDeprecated)
+ error("use of 'invariant' rather than 'immutable' is deprecated");
@yebblies

yebblies Feb 2, 2012

Member

If this is all new syntax I don't think we need to allow invariant here.

Owner

andralex commented Sep 25, 2012

This has been a long-standing bug, let's fix it. The use of shared const is rather obscure but legit nevertheless. LGTM.

donc pushed a commit that referenced this pull request Sep 25, 2012

Merge pull request #556 from 9rnsr/fix3091
Issue 3091 & 6873 - Make "StorageClasses Type" syntax available in some where

@donc donc merged commit ec3e330 into dlang:master Sep 25, 2012

1 check passed

default Pass: 11
Details
Member

9rnsr commented Sep 25, 2012

I recently posted a website fix for this pull request:
D-Programming-Language/d-programming-language.org#159

@donc: If you can do, please also check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment