This documentation is archived and is not being maintained.

Compiler Error C3409

Error Message

empty attribute block is not allowed

The square brackets were interpreted by the compiler as an attribute block, but no attributes were found.


The following sample generates C3409.

// C3409.cpp
// compile with: /c
#include <windows.h>
[]   // C3409
class a {};

// OK
[object, uuid("00000000-0000-0000-0000-000000000000")]
__interface x {};

[coclass, uuid("00000000-0000-0000-0000-000000000001")]
class b : public x {};