RAD Studio |  |

E2017: Ambiguous member name 'name' (C++)

Whenever a structure member name is used in inline assembly, such a name must be unique. (If it is defined in more than one structure, all of the definitions must agree as to its type and offset within the structures). In this case, an ambiguous member name has been used.

For example:

Copy Code

    struct A

Copy Code

    {

Copy Code

       int a;

Copy Code

       int b;

Copy Code

    };

Copy Code

    ...

Copy Code

    asm ax,.a;

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!