www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12953] New: Wrong alignment number in error messages


          Issue ID: 12953
           Summary: Wrong alignment number in error messages
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: k.hara.pg gmail.com

This code:

align align void f1() {}
align align(1) void f2() {}
align(1) align void f2() {}

Will print following errors:

test.d(1): Error: redundant alignment attribute align(-1)
test.d(2): Error: conflicting alignment attribute align(-1) and align(1)
test.d(3): Error: conflicting alignment attribute align(1) and align(-1)

align(-1) is wrong.

Jun 19 2014