Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
May 29, 2013 [Issue 10208] New: Module-level const/immutable variables with initialization value don't support UDAs | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10208 Summary: Module-level const/immutable variables with initialization value don't support UDAs Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2013-05-29 13:07:23 PDT --- DMD 2.063beta7: @( 10) enum int x01 = 100; @( 20) int x02; @( 30) const int x03; @( 40) immutable int x04; @( 50) int x05 = 500; @( 60) const int x06 = 600; @( 70) immutable int x07 = 700; @( 80) __gshared enum int x08 = 800; @( 90) __gshared int x09; @(100) __gshared const int x10; @(110) __gshared immutable int x11; @(120) __gshared int x12 = 1200; @(130) __gshared const int x13 = 1300; @(140) __gshared immutable int x14 = 1400; pragma(msg, __traits(getAttributes, x01)); // OK pragma(msg, __traits(getAttributes, x02)); // OK pragma(msg, __traits(getAttributes, x03)); // OK pragma(msg, __traits(getAttributes, x04)); // OK pragma(msg, __traits(getAttributes, x05)); // OK pragma(msg, __traits(getAttributes, x06)); // Error pragma(msg, __traits(getAttributes, x07)); // Error pragma(msg, __traits(getAttributes, x08)); // OK pragma(msg, __traits(getAttributes, x09)); // OK pragma(msg, __traits(getAttributes, x10)); // OK pragma(msg, __traits(getAttributes, x11)); // OK pragma(msg, __traits(getAttributes, x12)); // OK pragma(msg, __traits(getAttributes, x13)); // Error pragma(msg, __traits(getAttributes, x14)); // Error void main() {} Problem found by Dicebot and Jack Applegame, and reported by me after suggestion by Kenji Hara: http://forum.dlang.org/post/iqfqmapsksrpmoaxaqlf@forum.dlang.org -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 30, 2013 [Issue 10208] Module-level const/immutable variables with initialization value don't support UDAs | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=10208 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull Platform|x86 |All OS/Version|Windows |All --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-05-30 02:33:38 PDT --- https://github.com/D-Programming-Language/dmd/pull/2100 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 01, 2013 [Issue 10208] Module-level const/immutable variables with initialization value don't support UDAs | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=10208 --- Comment #2 from github-bugzilla@puremagic.com 2013-05-31 21:02:56 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ff7270da2b14503c723124f840a69cb8adebe3df fix Issue 10208 - Module-level const/immutable variables with initialization value don't support UDAs https://github.com/D-Programming-Language/dmd/commit/4aac3b50b4516974d4b9e42b268c0ef7f6667a7c Merge pull request #2100 from 9rnsr/fix10208 Issue 10208 - Module-level const/immutable variables with initialization value don't support UDAs -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 01, 2013 [Issue 10208] Module-level const/immutable variables with initialization value don't support UDAs | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=10208 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 01, 2013 [Issue 10208] Module-level const/immutable variables with initialization value don't support UDAs | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=10208 --- Comment #3 from github-bugzilla@puremagic.com 2013-06-01 11:26:14 PDT --- Commit pushed to 2.063 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/19c35c853041d5c64c5d0ad5869182e42c3f029b Merge pull request #2100 from 9rnsr/fix10208 Issue 10208 - Module-level const/immutable variables with initialization value don't support UDAs -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 01, 2013 [Issue 10208] Module-level const/immutable variables with initialization value don't support UDAs | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=10208 --- Comment #4 from github-bugzilla@puremagic.com 2013-06-01 16:02:35 PDT --- Commit pushed to 2.063 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/19c35c853041d5c64c5d0ad5869182e42c3f029b Merge pull request #2100 from 9rnsr/fix10208 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation