You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I compile libtcod or my application using it with GCC 12 I get the following error.
/usr/include/libtcod/config.h:84:30: error: standard attributes in middle of decl-specifiers
84 | #define TCOD_DEPRECATED(msg) [[deprecated(msg)]]
| ^
/usr/include/libtcod/mersenne_types.h:86:9: note: in expansion of macro ‘TCOD_DEPRECATED’
86 | typedef TCOD_DEPRECATED("This type hides indirection. Use TCOD_Random* instead.") union TCOD_Random* TCOD_random_t;
| ^~~~~~~~~~~~~~~
/usr/include/libtcod/config.h:84:30: note: standard attributes must precede the decl-specifiers to apply to the declaration, or follow them to apply to the type
84 | #define TCOD_DEPRECATED(msg) [[deprecated(msg)]]
| ^
I believe this is due to a breaking change introduced in GCC 12:
Stricter checking of attributes on friend declarations: if a friend declaration has an attribute, that declaration must be a definition. Moreover, a C++11 attribute cannot appear in the middle of the decl-specifier-seq. (PR99032)
The text was updated successfully, but these errors were encountered:
When I compile libtcod or my application using it with GCC 12 I get the following error.
I believe this is due to a breaking change introduced in GCC 12:
The text was updated successfully, but these errors were encountered: