[Issue 10149] align() expects integer literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 23 09:49:50 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10149


Max Samukha <samukha at voliacable.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |samukha at voliacable.com


--- Comment #1 from Max Samukha <samukha at voliacable.com> 2013-05-23 09:49:49 PDT ---
dmd has quite a few bugs like that. Your case should be easy to workaround with
a string mixin. Something like:

enum alignment = 16;
mixin("align(" ~ to!string(alignment) ~") int x;");

// or

mixin(format("align(%s) int x;", T.alignof));

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list