The syntax when using them in one case means different things
struct A { };
namespace X {
struct A final {};
struct A final = {};
}
In the first case, we are defining a struct called A, and in the second case we are defining an object called final.