Thread overview | |||||
---|---|---|---|---|---|
|
March 21, 2012 [Issue 7746] New: Error with 'TOK232' declaring enum of anonymous nested class type | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7746 Summary: Error with 'TOK232' declaring enum of anonymous nested class type Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: clugdbug@yahoo.com.au --- Comment #0 from Don <clugdbug@yahoo.com.au> 2012-03-21 08:33:51 PDT --- enum x = new class { int n = 4; }; static assert(x.n == 4); bug.d(5): Error: static assert (TOK232.n == 4) is not evaluatable at compile time -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 21, 2012 [Issue 7746] Error with 'TOK232' declaring enum of anonymous nested class type | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=7746 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic --- Comment #1 from Don <clugdbug@yahoo.com.au> 2012-03-21 08:45:30 PDT --- It probably should generate an error on creation of the enum. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 16, 2013 [Issue 7746] Error with 'TOK232' declaring enum of anonymous nested class type | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=7746 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2013-09-16 01:31:55 PDT --- In git head, error message is improved. enum x = new class { int n = 4; }; static assert(x.n == 4); test.d(1): Error: variable test.x : Unable to initialize enum with class or pointer to struct. Use static const variable instead. -- 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